protected virtual IDataView LoadTrainingData() { var cEnum = PTurnDataFilesStorage.GetChunks(Options.ProcessedDataFileName); var trainingData = MLContext.Data.LoadFromEnumerable <PTurnData>(cEnum); return(trainingData); }
protected MulticlassClassificationMetrics EvaluateModel(ITransformer trainedModel) { var data = PTurnDataFilesStorage.GetChunks(Options.TestPDataFileName); var testData = MLContext.Data.LoadFromEnumerable <PTurnData>(data); var transformedData = trainedModel.Transform(testData); return(MLContext.MulticlassClassification.Evaluate(transformedData)); }