I'm trying out the sample shown here. However, whenever I try to train the model I get an error: "The size of input lines is not consistent". This is using the exact files that are specified in the tutorial so I'm not sure where I'm going wrong - any ideas?
#r "netstandard"
#load @"C:\Users\Isaac\Source\Repos\scratchpad\.paket\load\netstandard2.0\ML\ml.group.fsx"openMicrosoft.MLopenMicrosoft.ML.Runtime.ApiopenMicrosoft.ML.TransformsopenMicrosoft.ML.TrainersletdataPath=@"data\imdb_labelled.txt"lettestDataPath=@"data\yelp_labelled.txt"typeSentimentData={[<Column(ordinal ="0")>] SentimentText :string[<Column(ordinal ="1", name ="Label")>] Sentiment :float }[<CLIMutable>]typeSentimentPrediction={[<ColumnName "PredictedLabel">] Sentiment :bool }letpipeline= LearningPipeline()
pipeline.Add(TextLoader<SentimentData>(dataPath, useHeader =false, separator ="tab"))
pipeline.Add(TextFeaturizer("Features","SentimentText"))
pipeline.Add(FastTreeBinaryClassifier(NumLeaves =5, NumTrees =5, MinDocumentsInLeafs =2))/// Pop!letmodel= pipeline.Train<SentimentData, SentimentPrediction>()
I'm trying out the sample shown here. However, whenever I try to train the model I get an error: "The size of input lines is not consistent". This is using the exact files that are specified in the tutorial so I'm not sure where I'm going wrong - any ideas?