1 write to _context
Microsoft.ML.PerformanceTests (1)
TextPredictionEngineCreation.cs (1)
23
_context
= new MLContext(1);
9 references to _context
Microsoft.ML.PerformanceTests (9)
TextPredictionEngineCreation.cs (9)
24
var data =
_context
.Data.LoadFromTextFile<SentimentData>(
28
var pipeline =
_context
.Transforms.Text.FeaturizeText("Features", "SentimentText")
29
.AppendCacheCheckpoint(
_context
)
30
.Append(
_context
.BinaryClassification.Trainers.SdcaNonCalibrated(
38
_context
.Model.Save(model, data.Schema, modelPath);
41
_trainedModel =
_context
.Model.Load(modelPath, out var inputSchema);
43
_trainedModelOldFormat =
_context
.Model.Load(Path.Combine("TestModels", "SentimentModel.zip"), out inputSchema);
49
return
_context
.Model.CreatePredictionEngine<SentimentData, SentimentPrediction>(_trainedModel);
55
return
_context
.Model.CreatePredictionEngine<SentimentData, SentimentPrediction>(_trainedModelOldFormat);