我在这里查看cs文件:https:
//www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows
并尝试翻译它到F#它编译得很好但是System.Reflection.TargetInvocationException在运行时抛出:FormatException: One of the identified items was in an invalid format.我错过了什么?
open Microsoft.ML
open Microsoft.ML.Runtime.Api
open Microsoft.ML.Trainers
open Microsoft.ML.Transforms
open System
type IrisData =
[<Column("0")>] val mutable SepalLength : float
[<Column("1")>] val mutable SepalWidth : float
[<Column("2")>] val mutable PetalLength : float
[<Column("3")>] val mutable PetalWidth : float
[<Column("4");ColumnName("Label")>] val mutable Label : string
new(sepLen, sepWid, petLen, petWid, label) =
{ SepalLength = sepLen
SepalWidth = sepWid
PetalLength = petLen
PetalWidth …Run Code Online (Sandbox Code Playgroud)