15 references to _mlContext
Microsoft.ML.PerformanceTests (15)
StochasticDualCoordinateAscentClassifierBench.cs (15)
74var loader = new TextLoader(_mlContext, options: options); 78var pipeline = new ColumnConcatenatingEstimator(_mlContext, "Features", new[] { "SepalLength", "SepalWidth", "PetalLength", "PetalWidth" }) 79.Append(_mlContext.Transforms.Conversion.MapValueToKey("Label")) 80.Append(_mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy()); 101var loader = _mlContext.Data.LoadFromTextFile(_sentimentDataPath, arguments); 102var text = _mlContext.Transforms.Text.FeaturizeText("WordEmbeddings", new TextFeaturizingEstimator.Options 112var trans = _mlContext.Transforms.Text.ApplyWordEmbedding("Features", "WordEmbeddings_TransformedText", 114.Append(_mlContext.Transforms.Conversion.MapValueToKey("Label")) 118var trainer = _mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy(); 127_predictionEngine = _mlContext.Model.CreatePredictionEngine<IrisData, IrisPrediction>(_trainedModel); 143var loader = new TextLoader(_mlContext, options: options); 147_evaluator = new MulticlassClassificationEvaluator(_mlContext, new MulticlassClassificationEvaluator.Arguments()); 166public void PredictIrisBatchOf1() => _trainedModel.Transform(_mlContext.Data.LoadFromEnumerable(_batches[0])); 169public void PredictIrisBatchOf2() => _trainedModel.Transform(_mlContext.Data.LoadFromEnumerable(_batches[1])); 172public void PredictIrisBatchOf5() => _trainedModel.Transform(_mlContext.Data.LoadFromEnumerable(_batches[2]));