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)
24var data = _context.Data.LoadFromTextFile<SentimentData>( 28var 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); 49return _context.Model.CreatePredictionEngine<SentimentData, SentimentPrediction>(_trainedModel); 55return _context.Model.CreatePredictionEngine<SentimentData, SentimentPrediction>(_trainedModelOldFormat);