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