791 instantiations of MLContext
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
31var mlContext = new MLContext();
Microsoft.Data.Analysis.Tests (2)
DataFrameIDataViewTests.cs (2)
346var mlContext = new MLContext(); 448var mlContext = new MLContext();
Microsoft.Extensions.ML (1)
MLOptions.cs (1)
30get { return _context ?? (_context = new MLContext()); }
Microsoft.ML.AutoML (4)
AutoMLExperiment\IMLContextManager.cs (1)
38var newContext = new MLContext(seed);
AutoMLExperiment\ITrialResultManager.cs (1)
137var context = new MLContext();
Experiment\Experiment.cs (2)
158_currentModelMLContext = _newContextSeedGenerator == null ? new MLContext() : new MLContext(_newContextSeedGenerator.Next());
Microsoft.ML.AutoML.Samples (8)
AutoFit\BinaryClassificationExperiment.cs (1)
18MLContext mlContext = new MLContext();
AutoFit\MulticlassClassificationExperiment.cs (1)
19MLContext mlContext = new MLContext();
AutoFit\RankingExperiment.cs (1)
22MLContext mlContext = new MLContext();
AutoFit\RecommendationExperiment.cs (1)
25MLContext mlContext = new MLContext();
AutoFit\RegressionExperiment.cs (1)
19MLContext mlContext = new MLContext();
AutoMLExperiment.cs (1)
20var context = new MLContext(seed);
Cifar10.cs (1)
28var context = new MLContext();
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
32var context = new MLContext(seed);
Microsoft.ML.AutoML.Tests (109)
AutoFeaturizerTests.cs (6)
46var context = new MLContext(1); 58var context = new MLContext(1); 70var context = new MLContext(1); 83var context = new MLContext(1); 94var context = new MLContext(1); 106var context = new MLContext(1);
AutoFitTests.cs (16)
44var context = new MLContext(1); 70var context = new MLContext(1); 97var context = new MLContext(1); 124var context = new MLContext(1); 152var context = new MLContext(1); 183var context = new MLContext(1); 213var context = new MLContext(1); 259var context = new MLContext(0); 332var context = new MLContext(seed: 1); 359var context = new MLContext(seed: 1); 382var context = new MLContext(1); 415var mlContext = new MLContext(1); 478var mlContext = new MLContext(1); 520MLContext mlContext = new MLContext(1); 584var context = new MLContext(1); 648var context = new MLContext(1);
AutoMLExperimentTests.cs (16)
35var context = new MLContext(1); 65var context = new MLContext(1); 95var context = new MLContext(1); 121var context = new MLContext(1); 154var context = new MLContext(1); 185var context = new MLContext(1); 212var context = new MLContext(1); 237var context = new MLContext(1); 262var context = new MLContext(1); 287var context = new MLContext(1); 314var context = new MLContext(1); 341var context = new MLContext(1); 379var context = new MLContext(1); 398var context = new MLContext(1); 418var context = new MLContext(); 423context = new MLContext(1);
ColumnInferenceTests.cs (14)
32var context = new MLContext(1); 47var context = new MLContext(1); 54Assert.Throws<ArgumentOutOfRangeException>(() => new MLContext(1).Auto().InferColumns(DatasetUtil.GetUciAdultDataset(), 100)); 60var result = new MLContext(1).Auto().InferColumns(DatasetUtil.GetUciAdultDataset(), 14, hasHeader: true); 70var result = new MLContext(1).Auto().InferColumns(DatasetUtil.GetIrisDataset(), DatasetUtil.IrisDatasetLabelColIndex); 81var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "DatasetWithEmptyColumn.txt"), DefaultColumnNames.Label, groupColumns: false); 89var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "BinaryDatasetWithBoolColumn.txt"), DefaultColumnNames.Label); 107var context = new MLContext(1); 136var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "NameColumnIsOnlyFeatureDataset.txt"), DefaultColumnNames.Label); 152var result = new MLContext(1).Auto() 173var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "DatasetWithDefaultColumnNames.txt"), 190var result = new MLContext(1).Auto().InferColumns(DatasetUtil.GetMlNetGeneratedRegressionDataset(), 203var context = new MLContext(); 219MLContext mlContext = new MLContext();
DatasetDimensionsTests.cs (3)
24var context = new MLContext(1); 44var context = new MLContext(1); 64var context = new MLContext(1);
DatasetUtil.cs (6)
56var context = new MLContext(1); 69var context = new MLContext(1); 82var context = new MLContext(1); 95var context = new MLContext(1); 107var context = new MLContext(1); 118var context = new MLContext(1);
EstimatorExtensionTests.cs (2)
24var context = new MLContext(1); 44var context = new MLContext(1);
GetNextPipelineTests.cs (2)
26var context = new MLContext(1); 51var context = new MLContext(1);
InferredPipelineTests.cs (1)
22var context = new MLContext(1);
MLContextManagerTests.cs (2)
28var mainContext = new MLContext(10); 46var mainContext = new MLContext(10);
PurposeInferenceTests.cs (1)
22var context = new MLContext(1);
SplitUtilTests.cs (3)
29var mlContext = new MLContext(1); 45var mlContext = new MLContext(seed: 0); 64var mlContext = new MLContext(seed: 0);
SuggestedPipelineBuilderTests.cs (1)
15private static MLContext _context = new MLContext(1);
SweepableExtensionTest.cs (11)
49var context = new MLContext(); 68var context = new MLContext(); 80var context = new MLContext(); 93var context = new MLContext(); 106var context = new MLContext(); 119var context = new MLContext(); 132var context = new MLContext(); 146var context = new MLContext(); 160var context = new MLContext(); 173var context = new MLContext(); 186var context = new MLContext();
SweeperTests.cs (3)
32var sweeper = new SmacSweeper(new MLContext(1), new SmacSweeper.Arguments() 89var sweeper = new SmacSweeper(new MLContext(1), new SmacSweeper.Arguments() 142var sweeper = new SmacSweeper(new MLContext(1), new SmacSweeper.Arguments()
TrainerExtensionsTests.cs (4)
25var context = new MLContext(1); 54var context = new MLContext(1); 404var trainers = RecipeInference.AllowedTrainers(new MLContext(1), TaskKind.BinaryClassification, new ColumnInformation(), null); 412var trainers = RecipeInference.AllowedTrainers(new MLContext(1), TaskKind.BinaryClassification, new ColumnInformation(), allowList);
TrainValidaionDatasetManagerTest.cs (1)
28var context = new MLContext(1);
TransformInferenceTests.cs (1)
765var transforms = TransformInferenceApi.InferTransforms(new MLContext(1), task, columns);
TransformPostTrainerInferenceTests.cs (1)
71var transforms = TransformInferenceApi.InferTransformsPostTrainer(new MLContext(1), task, columns);
TunerTests.cs (7)
32var context = new MLContext(1); 73var context = new MLContext(1); 167var context = new MLContext(1); 202var context = new MLContext(1); 237var context = new MLContext(1); 291var context = new MLContext(1); 341var context = new MLContext(1);
UserInputValidationTests.cs (7)
105var context = new MLContext(1); 127var context = new MLContext(1); 150var context = new MLContext(1); 279var dataViewBuilder = new ArrayDataViewBuilder(new MLContext(1)); 324var dataViewBuilder = new ArrayDataViewBuilder(new MLContext(1)); 348var mlContext = new MLContext(1); 374var dataViewBuilder = new ArrayDataViewBuilder(new MLContext(1));
Utils\MLNetUtils\DataViewTestFixture.cs (1)
25var dataBuilder = new ArrayDataViewBuilder(new MLContext(1));
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
41var mlContext = new MLContext();
Microsoft.ML.CodeGenerator.Tests (61)
ApprovalTests\ConsoleCodeGeneratorTests.cs (4)
544MLContext context = new MLContext(); 600MLContext context = new MLContext(); 637MLContext context = new MLContext(); 1095MLContext context = new MLContext();
CodeGenTests.cs (5)
26var context = new MLContext(); 46var context = new MLContext(); 67var context = new MLContext(); 81var context = new MLContext(); 121var context = new MLContext();
TrainerGeneratorTests.cs (39)
28var context = new MLContext(); 56var context = new MLContext(); 77var context = new MLContext(); 100var context = new MLContext(); 117var context = new MLContext(); 137var context = new MLContext(); 154var context = new MLContext(); 174var context = new MLContext(); 191var context = new MLContext(); 211var context = new MLContext(); 228var context = new MLContext(); 248var context = new MLContext(); 265var context = new MLContext(); 285var context = new MLContext(); 299var context = new MLContext(); 325var context = new MLContext(); 342var context = new MLContext(); 362var context = new MLContext(); 379var context = new MLContext(); 399var context = new MLContext(); 416var context = new MLContext(); 436var context = new MLContext(); 453var context = new MLContext(); 473var context = new MLContext(); 490var context = new MLContext(); 510var context = new MLContext(); 527var context = new MLContext(); 548var context = new MLContext(); 565var context = new MLContext(); 586var context = new MLContext(); 603var context = new MLContext(); 624var context = new MLContext(); 641var context = new MLContext(); 662var context = new MLContext(); 678var context = new MLContext(); 699var context = new MLContext(); 716var context = new MLContext(); 737var context = new MLContext(); 754var context = new MLContext();
TransformGeneratorTests.cs (11)
24var context = new MLContext(); 38var context = new MLContext(); 52var context = new MLContext(); 66var context = new MLContext(); 80var context = new MLContext(); 94var context = new MLContext(); 108var context = new MLContext(); 122var context = new MLContext(); 136var context = new MLContext(); 150var context = new MLContext(); 164var context = new MLContext();
UtilTest.cs (2)
130var context = new MLContext(); 165var context = new MLContext();
Microsoft.ML.Core.Tests (14)
UnitTests\TestContracts.cs (1)
51var env = new MLContext(1);
UnitTests\TestEarlyStoppingCriteria.cs (1)
20var env = new MLContext(1)
UnitTests\TestEntryPoints.cs (7)
744var mlContext = new MLContext(1); 892var mlContext = new MLContext(1); 1053var mlContext = new MLContext(1); 1196var mlContext = new MLContext(1); 1343var mlContext = new MLContext(1); 1359var mlContext = new MLContext(1); 6582var ml = new MLContext(1);
UnitTests\TestHosts.cs (3)
27IHostEnvironment env = new MLContext(seed: 42); 92IHostEnvironment env = new MLContext(seed: 42); 127var env = new MLContext(1);
UnitTests\TestModelLoad.cs (2)
26var env = new MLContext(1).AddStandardComponents(); 44var env = new MLContext(1).AddStandardComponents();
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
153private readonly MLContext _context = new MLContext();
Microsoft.ML.Fairlearn.Tests (3)
GridSearchTest.cs (2)
26var context = new MLContext(); 82var context = new MLContext();
MetricTest.cs (1)
18mlContext = new MLContext();
Microsoft.ML.IntegrationTests (73)
DataIO.cs (5)
33var mlContext = new MLContext(seed: 1); 47var mlContext = new MLContext(seed: 1); 68var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 109var mlContext = new MLContext(seed: 1);
DataTransformation.cs (5)
29var mlContext = new MLContext(seed: 1); 82var mlContext = new MLContext(seed: 1); 130var mlContext = new MLContext(seed: 1); 166var mlContext = new MLContext(seed: 1); 193var mlContext = new MLContext(seed: 1);
Debugging.cs (4)
38var mlContext = new MLContext(seed: 1); 101var mlContext = new MLContext(seed: 1); 130var mlContext = new MLContext(seed: 1); 164var mlContext = new MLContext(seed: 1);
Evaluation.cs (10)
28var mlContext = new MLContext(seed: 1); 58var mlContext = new MLContext(seed: 1); 87var mlContext = new MLContext(seed: 1); 116var mlContext = new MLContext(seed: 1); 144var mlContext = new MLContext(seed: 1); 194var mlContext = new MLContext(seed: 1); 209var mlContext = new MLContext(seed: 1); 227var mlContext = new MLContext(seed: 1); 265var mlContext = new MLContext(seed: 1); 293var mlContext = new MLContext(seed: 1);
Explainability.cs (8)
32var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 114var mlContext = new MLContext(seed: 1); 141var mlContext = new MLContext(seed: 1); 168var mlContext = new MLContext(seed: 1); 205var mlContext = new MLContext(seed: 1); 242var mlContext = new MLContext(seed: 1); 280var mlContext = new MLContext(seed: 1);
IntrospectiveTraining.cs (9)
32var mlContext = new MLContext(seed: 1); 73var mlContext = new MLContext(seed: 1); 134var mlContext = new MLContext(seed: 1); 175var mlContext = new MLContext(seed: 1); 217var mlContext = new MLContext(seed: 1); 255var mlContext = new MLContext(seed: 1); 286var mlContext = new MLContext(seed: 1); 329var mlContext = new MLContext(seed: 1); 387var mlContext = new MLContext(seed: 1);
ModelFiles.cs (10)
42var mlContext = new MLContext(seed: 1); 89var mlContext = new MLContext(seed: 1); 132var mlContext = new MLContext(1); 238var mlContext = new MLContext(1); 265var mlContext = new MLContext(1); 322var mlContext = new MLContext(1); 355var mlContext = new MLContext(1); 384var mlContext = new MLContext(1); 422var mlContext = new MLContext(1); 455var mlContext = new MLContext(1);
ONNX.cs (3)
34var mlContext = new MLContext(seed: 1); 84var mlContext = new MLContext(seed: 1); 136var mlContext = new MLContext(seed: 1);
Prediction.cs (3)
38var mlContext = new MLContext(seed: 1); 81var mlContext = new MLContext(seed: 1); 104var mlContext = new MLContext(seed: 1);
SchemaDefinitionTests.cs (1)
26_ml = new MLContext(42);
Training.cs (11)
29var mlContext = new MLContext(seed: 1); 83var mlContext = new MLContext(seed: 1); 127var mlContext = new MLContext(seed: 1); 171var mlContext = new MLContext(seed: 1); 215var mlContext = new MLContext(seed: 1); 259var mlContext = new MLContext(seed: 1); 309var mlContext = new MLContext(seed: 1); 353var mlContext = new MLContext(seed: 1); 397var mlContext = new MLContext(seed: 1); 446var mlContext = new MLContext(seed: 1); 477var mlContext = new MLContext(seed: 1);
Validation.cs (4)
35var mlContext = new MLContext(seed: 1); 67var mlContext = new MLContext(1); 101var mlContext = new MLContext(seed: 1); 151var mlContext = new MLContext(1);
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (1)
98var env = new MLContext(null);
OnnxTransformTests.cs (4)
243var env = new MLContext(1); 294var env = new MLContext(1); 528var mlContext = new MLContext(1); 554var mlContext = new MLContext(seed: 1);
Microsoft.ML.PerformanceTests (16)
BenchmarkBase.cs (1)
44var mlContext = new MLContext(1);
CacheDataViewBench.cs (1)
30var ctx = new MLContext(1);
FeaturizeTextBench.cs (1)
28_mlContext = new MLContext(seed: 1);
HashBench.cs (1)
74private readonly MLContext _env = new MLContext(1);
Helpers\EnvironmentFactory.cs (2)
20var ctx = new MLContext(1); 36var ctx = new MLContext(1);
ImageClassificationBench.cs (1)
31_mlContext = new MLContext(seed: 1);
KMeansAndLogisticRegressionBench.cs (1)
21var ml = new MLContext(seed: 1);
PredictionEngineBench.cs (3)
38var env = new MLContext(seed: 1); 77var mlContext = new MLContext(seed: 1); 112var env = new MLContext(seed: 1);
RffTransform.cs (1)
31var mlContext = new MLContext(1);
ShuffleRowsBench.cs (1)
26_context = new MLContext();
StochasticDualCoordinateAscentClassifierBench.cs (1)
24private readonly MLContext _mlContext = new MLContext(seed: 1);
TextLoaderBench.cs (1)
31_mlContext = new MLContext(seed: 1);
TextPredictionEngineCreation.cs (1)
23_context = new MLContext(1);
Microsoft.ML.Predictor.Tests (7)
CmdLine\CmdLine.cs (2)
101var env = new MLContext(seed: 42); 111var env = new MLContext(seed: 42);
CmdLine\CmdLineReverseTest.cs (2)
25var env = new MLContext(seed: 42); 84var ml = new MLContext(1);
TestGamPublicInterfaces.cs (1)
24var mlContext = new MLContext(seed: 1);
TestIniModels.cs (2)
518var mlContext = new MLContext(seed: 0); 557var mlContext = new MLContext(seed: 0);
Microsoft.ML.Samples (216)
Dynamic\DataOperations\BootstrapSample.cs (1)
13var mlContext = new MLContext();
Dynamic\DataOperations\Cache.cs (1)
14var mlContext = new MLContext();
Dynamic\DataOperations\CrossValidationSplit.cs (1)
15var mlContext = new MLContext();
Dynamic\DataOperations\DataViewEnumerable.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByColumn.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByCustomPredicate.cs (1)
14var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
17var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
17var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByStatefulCustomPredicate.cs (1)
14var mlContext = new MLContext();
Dynamic\DataOperations\LoadFromEnumerable.cs (1)
22var mlContext = new MLContext();
Dynamic\DataOperations\LoadingSvmLight.cs (1)
44var mlContext = new MLContext();
Dynamic\DataOperations\LoadingText.cs (1)
42var mlContext = new MLContext();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\DataOperations\ShuffleRows.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\SkipRows.cs (1)
15var mlContext = new MLContext();
Dynamic\DataOperations\TakeRows.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\TrainTestSplit.cs (1)
15var mlContext = new MLContext();
Dynamic\ModelOperations\OnnxConversion.cs (1)
36var mlContext = new MLContext(seed: 0);
Dynamic\ModelOperations\SaveLoadModel.cs (1)
14var mlContext = new MLContext();
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
14var mlContext = new MLContext();
Dynamic\NgramExtraction.cs (1)
14var ml = new MLContext();
Dynamic\SimpleDataViewImplementation.cs (1)
35var mlContext = new MLContext();
Dynamic\TensorFlow\ImageClassification.cs (1)
37var mlContext = new MLContext();
Dynamic\TensorFlow\TextClassification.cs (1)
21var mlContext = new MLContext();
Dynamic\TextTransform.cs (1)
15var ml = new MLContext();
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
19var mlContext = new MLContext();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
16var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Clustering\KMeans.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
41MLContext mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
23var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
18var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
24var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
25var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (1)
29var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastForest.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\Gam.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
19var mlContext = new MLContext();
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
17var mlContext = new MLContext();
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
25var mlContext = new MLContext(seed: 3);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
25var mlContext = new MLContext(seed: 3);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Regression\Sdca.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\ApplyOnnxModel.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
22var mlContext = new MLContext();
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotEncodingMultiColumn.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotHashEncodingMultiColumn.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\Concatenate.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Conversion\ConvertType.cs (1)
11var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\Hash.cs (1)
14var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
16var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToBinaryVector.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
19var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\Conversion\MapKeyToVector.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToVectorMultiColumn.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValue.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\CopyColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\CustomMapping.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
23var mlContext = new MLContext();
Dynamic\Transforms\DropColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Expression.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
22var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\IndicateMissingValues.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\NormalizeBinning.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLpNorm.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMinMax.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\SelectColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\StatefulCustomMapping.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\NormalizeText.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
19var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
15var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
22var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
22var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
16var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
23var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
21var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
19var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
20var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\WithOnFitDelegate.cs (1)
18var mlContext = new MLContext();
Microsoft.ML.Samples.GPU (6)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
37var mlContext = new MLContext();
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
21var mlContext = new MLContext();
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
41MLContext mlContext = new MLContext(seed: 1);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
35MLContext mlContext = new MLContext(seed: 1);
Microsoft.ML.Samples.OneDal (1)
Program.cs (1)
165var mlContext = new MLContext(seed: 42);
Microsoft.ML.Sweeper.Tests (12)
SweeperTest.cs (2)
22var env = new MLContext(42); 39var env = new MLContext(42);
TestSweeper.cs (10)
93var env = new MLContext(42); 133var env = new MLContext(42); 183var env = new MLContext(42); 233var env = new MLContext(42); 301var env = new MLContext(42); 353var env = new MLContext(42); 431var env = new MLContext(42); 541var env = new MLContext(42); 597var env = new MLContext(42); 645var env = new MLContext(42);
Microsoft.ML.TensorFlow.Tests (5)
TensorFlowEstimatorTests.cs (4)
150var mlContext = new MLContext(seed: 1); 192var mlContext = new MLContext(seed: 1); 238var mlContext = new MLContext(seed: 1); 286MLContext context = new MLContext(seed: 1);
TensorflowTests.cs (1)
64private MLContext _mlContext = new MLContext(seed: 1);
Microsoft.ML.TestFramework (4)
BaseTestBaseline.cs (1)
109ML = new MLContext(42);
TestCommandBase.cs (1)
532var env = new MLContext(seed: 42);
TestSparseDataView.cs (2)
50var env = new MLContext(1); 90var env = new MLContext(1);
Microsoft.ML.Tests (216)
AnomalyDetectionTests.cs (3)
59var mlContext = new MLContext(seed: 0); 89var mlContext = new MLContext(seed: 0); 262var mlContext = new MLContext(seed: 0);
CollectionsDataViewTest.cs (9)
159var env = new MLContext(1); 181var env = new MLContext(1); 233var env = new MLContext(1); 259var env = new MLContext(1); 313var env = new MLContext(1); 343var env = new MLContext(1); 394var env = new MLContext(1); 445var env = new MLContext(1); 482var env = new MLContext(1);
DatabaseLoaderTests.cs (6)
52var mlContext = new MLContext(seed: 1); 97var mlContext = new MLContext(seed: 1); 133var mlContext = new MLContext(seed: 1); 165var mlContext = new MLContext(seed: 1); 197var mlContext = new MLContext(seed: 1); 257var mlContext = new MLContext(seed: 1);
EvaluateTests.cs (1)
33var mlContext = new MLContext(seed: 1);
ImagesTests.cs (17)
31var env = new MLContext(1); 62IHostEnvironment env = new MLContext(1); 106var env = new MLContext(1); 138var env = new MLContext(1); 173IHostEnvironment env = new MLContext(1); 332IHostEnvironment env = new MLContext(1); 407IHostEnvironment env = new MLContext(1); 483IHostEnvironment env = new MLContext(1); 558IHostEnvironment env = new MLContext(1); 633IHostEnvironment env = new MLContext(1); 708IHostEnvironment env = new MLContext(1); 784IHostEnvironment env = new MLContext(1); 859IHostEnvironment env = new MLContext(1); 935IHostEnvironment env = new MLContext(1); 1009var env = new MLContext(1); 1085var mlContext = new MLContext(0); 1177var mlContext = new MLContext(seed: 1);
OnnxConversionTest.cs (39)
70var mlContext = new MLContext(seed: 1); 145var mlContext = new MLContext(seed: 1); 178var mlContext = new MLContext(seed: 1); 219var mlContext = new MLContext(seed: 1); 260var mlContext = new MLContext(seed: 1); 384var mlContext = new MLContext(seed: 1); 413var mlContext = new MLContext(seed: 1); 464var mlContext = new MLContext(seed: 1); 497var env = new MLContext(1); 566var mlContext = new MLContext(seed: 1); 597var mlContext = new MLContext(seed: 1); 621var mlContext = new MLContext(seed: 1); 766var mlContext = new MLContext(seed: 1); 785var mlContext = new MLContext(seed: 1); 848var mlContext = new MLContext(seed: 1); 868var mlContext = new MLContext(seed: 1); 940var mlContext = new MLContext(seed: 1); 966var mlContext = new MLContext(seed: 1); 1001var mlContext = new MLContext(); 1059var mlContext = new MLContext(); 1098var mlContext = new MLContext(); 1152var mlContext = new MLContext(seed: 1); 1188var mlContext = new MLContext(seed: 1); 1226var mlContext = new MLContext(seed: 1); 1391var mlContext = new MLContext(seed: 1); 1437var mlContext = new MLContext(seed: 1); 1464var mlContext = new MLContext(seed: 1); 1539var mlContext = new MLContext(); 1563var mlContext = new MLContext(); 1599var mlContext = new MLContext(seed: 1); 1644var mlContext = new MLContext(seed: 1); 1698var mlContext = new MLContext(seed: 1); 1716var mlContext = new MLContext(seed: 1); 1761var mlContext = new MLContext(); 1843var mlContext = new MLContext(seed: 1); 1882var mlContext = new MLContext(seed: 1); 1930var mlContext = new MLContext(seed: 1); 1971var mlContext = new MLContext(seed: 1); 2022var mlContext = new MLContext();
OnnxSequenceTypeWithAttributesTest.cs (2)
43var ctx = new MLContext(1); 82var ctx = new MLContext(1);
PermutationFeatureImportanceTests.cs (40)
52ML = new MLContext(42); 53var ml2 = new MLContext(42); 61ML = new MLContext(42); 62var ml2 = new MLContext(42); 126ML = new MLContext(42); 127var ml2 = new MLContext(42); 135ML = new MLContext(42); 136var ml2 = new MLContext(42); 194ML = new MLContext(42); 195var ml2 = new MLContext(42); 203ML = new MLContext(42); 204var ml2 = new MLContext(42); 282ML = new MLContext(42); 283var ml2 = new MLContext(42); 291ML = new MLContext(42); 292var ml2 = new MLContext(42); 357ML = new MLContext(42); 358var ml2 = new MLContext(42); 366ML = new MLContext(42); 367var ml2 = new MLContext(42); 431ML = new MLContext(42); 432var ml2 = new MLContext(42); 440ML = new MLContext(42); 441var ml2 = new MLContext(42); 539ML = new MLContext(42); 540var ml2 = new MLContext(42); 548ML = new MLContext(42); 549var ml2 = new MLContext(42); 612ML = new MLContext(42); 613var ml2 = new MLContext(42); 621ML = new MLContext(42); 622var ml2 = new MLContext(42); 691ML = new MLContext(0); 692var ml2 = new MLContext(0); 700ML = new MLContext(0); 701var ml2 = new MLContext(0); 759ML = new MLContext(42); 760var ml2 = new MLContext(42); 768ML = new MLContext(42); 769var ml2 = new MLContext(42);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (16)
38var mlContext = new MLContext(1); 76var mlContext = new MLContext(); 147var mlContext = new MLContext(1); 215var mlContext = new MLContext(1); 274var mlContext = new MLContext(1); 301var mlContext = new MLContext(1); 332var context = new MLContext(1); 372var context = new MLContext(1); 407var context = new MLContext(1); 443var context = new MLContext(1); 501var mlContext = new MLContext(1); 570var mlContext = new MLContext(1); 633var mlContext = new MLContext(1); 682var mlContext = new MLContext(1); 705var mlContext = new MLContext(1); 755var newContext = new MLContext(1);
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
29var ml = new MLContext(1);
Scenarios\Api\Estimators\Extensibility.cs (1)
29var ml = new MLContext(1);
Scenarios\Api\Estimators\MultithreadedPrediction.cs (1)
27var ml = new MLContext(seed: 1);
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
27var ml = new MLContext(1); 75var mlContext = new MLContext(seed: 1);
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (2)
25var ml = new MLContext(seed: 1); 62var ml = new MLContext(seed: 1);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
23var ml = new MLContext(seed: 1);
Scenarios\Api\TestApi.cs (7)
66var env = new MLContext(seed: 0); 151var env = new MLContext(seed: 42); 173var mlContext = new MLContext(0); 200var mlContext = new MLContext(0); 298var mlContext = new MLContext(0); 346var mlContext = new MLContext(0); 418var mlContext = new MLContext(0);
Scenarios\ClusteringTests.cs (1)
57var mlContext = new MLContext(seed: 1);
Scenarios\GetColumnTests.cs (2)
28var mlContext = new MLContext(1); 70var mlContext = new MLContext(1);
Scenarios\IrisPlantClassificationTests.cs (1)
20var mlContext = new MLContext(seed: 1);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
16var mlContext = new MLContext(seed: 1);
Scenarios\OvaTest.cs (4)
21var mlContext = new MLContext(seed: 1); 54var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 125var mlContext = new MLContext(seed: 1);
Scenarios\RegressionTest.cs (1)
15var context = new MLContext();
Scenarios\WordBagTest.cs (2)
16var mlContext = new MLContext(1); 53var mlContext = new MLContext(1);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
18var mlContext = new MLContext(seed: 1);
TextLoaderTests.cs (15)
583var mlContext = new MLContext(seed: 1); 591var mlContext = new MLContext(seed: 1); 609var mlContext = new MLContext(seed: 1); 733var mlContext = new MLContext(1); 813var mlContext = new MLContext(1); 832var mlContext = new MLContext(1); 890var mlContext = new MLContext(seed: 1); 984var mlContext = new MLContext(seed: 1); 1036var mlContext = new MLContext(seed: 1); 1183var mlContext = new MLContext(1); 1241var mlContext = new MLContext(seed: 1); 1253var mlContext = new MLContext(seed: 1); 1268var mlContext = new MLContext(seed: 1); 1373var mlContext = new MLContext(seed: 1); 1424var mlContext = new MLContext(seed: 1);
TrainerEstimators\CalibratorEstimators.cs (1)
150var mlContext = new MLContext(0);
TrainerEstimators\FAFMEstimator.cs (2)
21var mlContext = new MLContext(seed: 0); 42var mlContext = new MLContext(seed: 0);
TrainerEstimators\MatrixFactorizationTests.cs (8)
59var mlContext = new MLContext(seed: 1); 216var mlContext = new MLContext(seed: 1); 327var mlContext = new MLContext(seed: 1); 447var mlContext = new MLContext(seed: 1); 534var mlContext = new MLContext(seed: 1); 591var mlContext = new MLContext(seed: 1); 647var mlContext = new MLContext(seed: 0); 774var mlContext = new MLContext(seed: 1);
TrainerEstimators\SdcaTests.cs (6)
64var mlContext = new MLContext(1); 108var mlContext = new MLContext(0); 164var mlContext = new MLContext(0); 223var mlContext = new MLContext(1); 265var mlContext = new MLContext(1); 300var mlContext = new MLContext(1);
TrainerEstimators\TreeEstimators.cs (5)
460var mlContext = new MLContext(seed: 0); 742var mlContext = new MLContext(seed: 0); 1025var context = new MLContext(seed: 1); 1071var context = new MLContext(seed: 1); 1099var context = new MLContext(seed: 1);
Transformers\CategoricalTests.cs (2)
107var mlContext = new MLContext(1); 130var mlContext = new MLContext(1);
Transformers\ConvertTests.cs (1)
283var mlContext = new MLContext(1);
Transformers\CopyColumnEstimatorTests.cs (6)
48var env = new MLContext(1); 60var env = new MLContext(1); 78var env = new MLContext(1); 97var env = new MLContext(1); 115var env = new MLContext(1); 134var env = new MLContext(1);
Transformers\CustomMappingTests.cs (2)
66var tempoEnv = new MLContext(1); 179var tempoEnv = new MLContext();
Transformers\KeyToVectorEstimatorTests.cs (1)
252MLContext mlContext = new MLContext(1);
Transformers\NormalizerTests.cs (1)
222var context = new MLContext(seed: 0);
Transformers\TextFeaturizerTests.cs (2)
671IHostEnvironment env = new MLContext(seed: 42); 719var ml = new MLContext(1);
Transformers\WordBagTransformerTests.cs (3)
28var mlContext = new MLContext(1); 57var mlContext = new MLContext(1); 85var mlContext = new MLContext(1);
Microsoft.ML.TimeSeries.Tests (24)
TimeSeriesDirectApi.cs (19)
110var env = new MLContext(1); 151var env = new MLContext(1); 215var ml = new MLContext(seed: 1); 291var ml = new MLContext(seed: 1); 354var env = new MLContext(1); 424var ml = new MLContext(seed: 1); 532var ml = new MLContext(1); 588var ml = new MLContext(1); 678var ml = new MLContext(1); 725var ml = new MLContext(1); 780var ml = new MLContext(1); 839var ml = new MLContext(1); 896var ml = new MLContext(1); 960var ml = new MLContext(1); 987var ml = new MLContext(1); 1037var ml = new MLContext(1); 1074var mlContext = new MLContext(); 1187var ml = new MLContext(1); 1221var ml = new MLContext(1);
TimeSeriesEstimatorTests.cs (1)
87var ml = new MLContext(seed: 1);
TimeSeriesSimpleApiTests.cs (4)
41var env = new MLContext(1); 79var env = new MLContext(1); 123var env = new MLContext(1); 173var env = new MLContext(1);
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
171var mlContext = new MLContext();
1109 references to MLContext
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
31var mlContext = new MLContext();
Microsoft.Data.Analysis.Tests (2)
DataFrameIDataViewTests.cs (2)
346var mlContext = new MLContext(); 448var mlContext = new MLContext();
Microsoft.Extensions.ML (10)
MLOptions.cs (4)
16private MLContext _context; 28public MLContext MLContext 43private readonly ILogger<MLContext> _logger; 49public PostMLContextOptionsConfiguration(ILogger<MLContext> logger)
ModelLoaders\FileModelLoader.cs (1)
24private readonly MLContext _context;
ModelLoaders\UriModelLoader.cs (1)
23private readonly MLContext _context;
PoolLoader.cs (1)
39private MLContext Context { get; }
PredictionEnginePoolPolicy.cs (3)
19private readonly MLContext _mlContext; 26/// <see cref="MLContext"/> used to load the model. 29public PredictionEnginePoolPolicy(MLContext mlContext, ITransformer model)
Microsoft.Extensions.ML.Tests (1)
FileLoaderTests.cs (1)
51var context = sp.GetRequiredService<IOptions<MLOptions>>().Value.MLContext;
Microsoft.ML.AutoML (248)
API\AutoCatalog.cs (4)
23private readonly MLContext _context; 25internal AutoCatalog(MLContext context) 301public SweepableEstimator CreateSweepableEstimator<T>(Func<MLContext, T, IEstimator<ITransformer>> factory, SearchSpace<T> ss = null) 304return new SweepableEstimator((MLContext context, Parameter param) => factory(context, param.AsType<T>()), ss);
API\AutoMLExperimentExtension.cs (2)
232var context = service.GetRequiredService<MLContext>();
API\BinaryClassificationExperiment.cs (3)
147internal BinaryClassificationExperiment(MLContext context, BinaryExperimentSettings settings) 358private MLContext _context; 388var refitContext = _contextManager.CreateMLContext();
API\ExperimentBase.cs (2)
22private protected readonly MLContext Context; 31internal ExperimentBase(MLContext context,
API\ExperimentSettings.cs (1)
50/// <value>The default value is the directory named "Microsoft.ML.AutoML" in the in the location specified by the <see cref="MLContext.TempFilePath"/>.</value>
API\MLContextExtension.cs (3)
8/// Class containing AutoML extension methods to <see cref="MLContext"/> 15/// <param name="mlContext"><see cref="MLContext"/> instance.</param> 17public static AutoCatalog Auto(this MLContext mlContext)
API\MulticlassClassificationExperiment.cs (3)
131internal MulticlassClassificationExperiment(MLContext context, MulticlassExperimentSettings settings) 343private MLContext _context; 366var refitContext = _contextManager.CreateMLContext();
API\Pipeline.cs (1)
25public IEstimator<ITransformer> ToEstimator(MLContext context)
API\RankingExperiment.cs (1)
119internal RankingExperiment(MLContext context, RankingExperimentSettings settings)
API\RecommendationExperiment.cs (1)
58internal RecommendationExperiment(MLContext context, RecommendationExperimentSettings settings)
API\RegressionExperiment.cs (3)
126internal RegressionExperiment(MLContext context, RegressionExperimentSettings settings) 363private MLContext _context; 393var refitContext = _contextManager.CreateMLContext();
AutoMLExperiment\AutoMLExperiment.cs (4)
35private readonly MLContext _context; 40public AutoMLExperiment(MLContext context, AutoMLExperimentSettings settings) 64var context = contextManager.CreateMLContext(); 210/// Another thing needs to notice is that this function won't immediately return after <paramref name="ct"/> get cancelled. Instead, it will call <see cref="MLContext.CancelExecution"/> to cancel all training process
AutoMLExperiment\IDatasetManager.cs (5)
41IDataView LoadTrainDataset(MLContext context, TrialSettings? settings); 43IDataView LoadValidateDataset(MLContext context, TrialSettings? settings); 68public IDataView LoadTrainDataset(MLContext context, TrialSettings? settings) 97public IDataView LoadValidateDataset(MLContext context, TrialSettings? settings) 102private void InitializeTrainDataset(MLContext context)
AutoMLExperiment\IMetricManager.cs (4)
21double Evaluate(MLContext context, IDataView eval); 54public double Evaluate(MLContext context, IDataView eval) 93public double Evaluate(MLContext context, IDataView eval) 128public double Evaluate(MLContext context, IDataView eval)
AutoMLExperiment\IMLContextManager.cs (5)
17MLContext CreateMLContext(); 25private readonly MLContext _mainContext; 28public DefaultMLContextManager(MLContext mainContext, string? channelName = "ChildContext") 34public MLContext CreateMLContext() 38var newContext = new MLContext(seed);
AutoMLExperiment\ITrialResultManager.cs (1)
137var context = new MLContext();
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
20private MLContext? _mLContext; 26public SweepablePipelineRunner(MLContext context, SweepablePipeline pipeline, IEvaluateMetricManager metricManager, IDatasetManager datasetManager, IChannel? logger = null)
ColumnInference\ColumnGroupingInference.cs (1)
56public static GroupingColumn[] InferGroupingAndNames(MLContext env, bool hasHeader, ColumnTypeInference.Column[] types, PurposeInference.Column[] purposes)
ColumnInference\ColumnInferenceApi.cs (6)
13public static ColumnInferenceResults InferColumns(MLContext context, string path, uint labelColumnIndex, 31public static ColumnInferenceResults InferColumns(MLContext context, string path, string labelColumn, 38public static ColumnInferenceResults InferColumns(MLContext context, string path, ColumnInformation columnInfo, 47public static ColumnInferenceResults InferColumns(MLContext context, string path, ColumnInformation columnInfo, bool hasHeader, 107private static TextFileContents.ColumnSplitResult InferSplit(MLContext context, TextFileSample sample, char? separatorChar, bool? allowQuotedStrings, bool? supportSparse) 133private static ColumnTypeInference.InferenceResult InferColumnTypes(MLContext context, TextFileSample sample,
ColumnInference\ColumnTypeInference.cs (2)
240public static InferenceResult InferTextFileColumnTypes(MLContext context, IMultiStreamSource fileSource, Arguments args) 245private static InferenceResult InferTextFileColumnTypesCore(MLContext context, IMultiStreamSource fileSource, Arguments args)
ColumnInference\PurposeInference.cs (1)
241public static PurposeInference.Column[] InferPurposes(MLContext context, IDataView data,
ColumnInference\TextFileContents.cs (2)
51public static ColumnSplitResult TrySplitColumns(MLContext context, IMultiStreamSource source, char[] separatorCandidates) 86private static bool TryParseFile(MLContext context, TextLoader.Options options, IMultiStreamSource source,
DatasetDimensions\DatasetDimensionsApi.cs (1)
13public static ColumnDimensions[] CalcColumnDimensions(MLContext context, IDataView data, PurposeInference.Column[] purposes)
EstimatorExtensions\EstimatorExtensions.cs (43)
11public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 16public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string outColumn) 24private static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string outColumn) 32public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 37public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 45private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 53public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 58public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 66private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 74public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 79public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 87private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 95public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 100public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string[] outColumns) 108private static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string[] outColumns) 122public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 127public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string[] outColumns) 135private static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string[] outColumns) 149public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 154public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 162private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 170public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 175public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string[] outColumns) 183public static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string[] outColumns) 196public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 201public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 206public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string[] outColumns) 214private static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string[] outColumns) 227public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 232public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 240private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 248public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 253public static SuggestedTransform CreateSuggestedTransform(MLContext context, string[] inColumns, string[] outColumns) 261private static IEstimator<ITransformer> CreateInstance(MLContext context, string[] inColumns, string[] outColumns) 274public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 279public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 288private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 297public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 302public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 313private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn) 322public IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode) 327public static SuggestedTransform CreateSuggestedTransform(MLContext context, string inColumn, string outColumn) 338private static IEstimator<ITransformer> CreateInstance(MLContext context, string inColumn, string outColumn)
EstimatorExtensions\IEstimatorExtension.cs (1)
9IEstimator<ITransformer> CreateInstance(MLContext context, PipelineNode pipelineNode);
Experiment\Experiment.cs (3)
18private readonly MLContext _context; 37private MLContext _currentModelMLContext; 40public Experiment(MLContext context,
Experiment\MetricsAgents\BinaryMetricsAgent.cs (2)
11private readonly MLContext _mlContext; 14public BinaryMetricsAgent(MLContext mlContext,
Experiment\MetricsAgents\MultiMetricsAgent.cs (2)
11private readonly MLContext _mlContext; 14public MultiMetricsAgent(MLContext mlContext,
Experiment\MetricsAgents\RankingMetricsAgent.cs (2)
13private readonly MLContext _mlContext; 17public RankingMetricsAgent(MLContext mlContext, RankingMetric metric, uint optimizationMetricTruncationLevel)
Experiment\MetricsAgents\RegressionMetricsAgent.cs (2)
11private readonly MLContext _mlContext; 14public RegressionMetricsAgent(MLContext mlContext, RegressionMetric optimizingMetric)
Experiment\ModelContainer.cs (3)
11private readonly MLContext _mlContext; 15internal ModelContainer(MLContext mlContext, ITransformer model) 21internal ModelContainer(MLContext mlContext, FileInfo fileInfo, ITransformer model, DataViewSchema modelInputSchema)
Experiment\RecipeInference.cs (1)
15public static IEnumerable<SuggestedTrainer> AllowedTrainers(MLContext mlContext, TaskKind task,
Experiment\Runners\CrossValRunner.cs (2)
15private readonly MLContext _context; 26public CrossValRunner(MLContext context,
Experiment\Runners\CrossValSummaryRunner.cs (2)
17private readonly MLContext _context; 29public CrossValSummaryRunner(MLContext context,
Experiment\Runners\RunnerUtil.cs (1)
14TrainAndScorePipeline<TMetrics>(MLContext context,
Experiment\Runners\TrainValidateRunner.cs (2)
13private readonly MLContext _context; 24public TrainValidateRunner(MLContext context,
Experiment\SuggestedPipeline.cs (4)
22private readonly MLContext _context; 28MLContext context, 55public MLContext GetContext() 75public static SuggestedPipeline FromPipeline(MLContext context, Pipeline pipeline)
Experiment\SuggestedPipelineBuilder.cs (2)
12public static SuggestedPipeline Build(MLContext context, 24private static void AddNormalizationTransforms(MLContext context,
Experiment\SuggestedPipelineRunDetails\SuggestedPipelineRunDetail.cs (1)
24public static SuggestedPipelineRunDetail FromPipelineRunResult(MLContext context, PipelineScore pipelineRunResult)
Experiment\SuggestedTrainer.cs (2)
17private readonly MLContext _mlContext; 21internal SuggestedTrainer(MLContext mlContext, ITrainerExtension trainerExtension,
PipelineSuggesters\PipelineSuggester.cs (4)
17public static Pipeline GetNextPipeline(MLContext context, 29public static SuggestedPipeline GetNextInferredPipeline(MLContext context, 120private static SuggestedPipeline GetNextFirstStagePipeline(MLContext context, 194private static bool SampleHyperparameters(MLContext context, SuggestedTrainer trainer,
SweepableEstimator\Estimators\ApplyOnnx.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, ApplyOnnxModelOption param)
SweepableEstimator\Estimators\Calibrators.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, NaiveOption param)
SweepableEstimator\Estimators\Concatenate.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, ConcatOption param)
SweepableEstimator\Estimators\FastForest.cs (3)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastForestOption param) 29public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastForestOption param) 47public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastForestOption param)
SweepableEstimator\Estimators\FastTree.cs (4)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastTreeOption param) 34public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastTreeOption param) 57public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastTreeOption param) 80public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastTreeOption param)
SweepableEstimator\Estimators\FeaturizeText.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, FeaturizeTextOption param)
SweepableEstimator\Estimators\ForecastBySsa.cs (1)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, SsaOption param)
SweepableEstimator\Estimators\Images.cs (6)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, LoadImageOption param) 19public override IEstimator<ITransformer> BuildFromOption(MLContext context, LoadImageOption param) 27public override IEstimator<ITransformer> BuildFromOption(MLContext context, ResizeImageOption param) 35public override IEstimator<ITransformer> BuildFromOption(MLContext context, ExtractPixelsOption param) 43public override IEstimator<ITransformer> BuildFromOption(MLContext context, ImageClassificationOption param) 60public override IEstimator<ITransformer> BuildFromOption(MLContext context, DnnFeaturizerImageOption param)
SweepableEstimator\Estimators\Lbfgs.cs (4)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, LbfgsOption param) 29public override IEstimator<ITransformer> BuildFromOption(MLContext context, LbfgsOption param) 47public override IEstimator<ITransformer> BuildFromOption(MLContext context, LbfgsOption param) 65public override IEstimator<ITransformer> BuildFromOption(MLContext context, LbfgsOption param)
SweepableEstimator\Estimators\LightGbm.cs (3)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, LgbmOption param) 39public override IEstimator<ITransformer> BuildFromOption(MLContext context, LgbmOption param) 67public override IEstimator<ITransformer> BuildFromOption(MLContext context, LgbmOption param)
SweepableEstimator\Estimators\MapValueToKey.cs (2)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, MapValueToKeyOption param) 17public override IEstimator<ITransformer> BuildFromOption(MLContext context, MapKeyToValueOption param)
SweepableEstimator\Estimators\MatrixFactorization.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, MatrixFactorizationOption param)
SweepableEstimator\Estimators\NamedEntityRecognitionMulti.cs (1)
15public override IEstimator<ITransformer> BuildFromOption(MLContext context, NamedEntityRecognitionOption param)
SweepableEstimator\Estimators\NormalizeMinMax.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, NormalizeMinMaxOption param)
SweepableEstimator\Estimators\NormalizeText.cs (1)
13public override IEstimator<ITransformer> BuildFromOption(MLContext context, NormalizeTextOption param)
SweepableEstimator\Estimators\ObjectDetection.cs (1)
15public override IEstimator<ITransformer> BuildFromOption(MLContext context, ObjectDetectionOption param)
SweepableEstimator\Estimators\OneHotEncoding.cs (2)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, OneHotOption param) 18public override IEstimator<ITransformer> BuildFromOption(MLContext context, OneHotOption param)
SweepableEstimator\Estimators\QuestionAnswering.cs (1)
12public override IEstimator<ITransformer> BuildFromOption(MLContext context, QuestionAnsweringOption param)
SweepableEstimator\Estimators\ReplaceMissingValue.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, ReplaceMissingValueOption param)
SweepableEstimator\Estimators\Sdca.cs (4)
11public override IEstimator<ITransformer> BuildFromOption(MLContext context, SdcaOption param) 29public override IEstimator<ITransformer> BuildFromOption(MLContext context, SdcaOption param) 47public override IEstimator<ITransformer> BuildFromOption(MLContext context, SdcaOption param) 65public override IEstimator<ITransformer> BuildFromOption(MLContext context, SdcaOption param)
SweepableEstimator\Estimators\SentenceSimilarity.cs (1)
15public override IEstimator<ITransformer> BuildFromOption(MLContext context, SentenceSimilarityOption param)
SweepableEstimator\Estimators\TextClassification.cs (1)
15public override IEstimator<ITransformer> BuildFromOption(MLContext context, TextClassificationOption param)
SweepableEstimator\Estimators\TypeConvert.cs (1)
9public override IEstimator<ITransformer> BuildFromOption(MLContext context, ConvertTypeOption param)
SweepableEstimator\ISweepable.cs (1)
20public T BuildFromOption(MLContext context, Parameter parameter);
SweepableEstimator\SweepableEstimator.cs (5)
19private readonly Func<MLContext, Parameter, IEstimator<ITransformer>> _factory; 21public SweepableEstimator(Func<MLContext, Parameter, IEstimator<ITransformer>> factory, SearchSpace.SearchSpace ss) 43public virtual IEstimator<ITransformer> BuildFromOption(MLContext context, Parameter param) 60public abstract IEstimator<ITransformer> BuildFromOption(MLContext context, TOption param); 71public override IEstimator<ITransformer> BuildFromOption(MLContext context, Parameter param)
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
75public EstimatorChain<ITransformer> BuildTrainingPipeline(MLContext context, Parameter parameter)
SweepableEstimator\SweepablePipeline.cs (1)
84public EstimatorChain<ITransformer> BuildFromOption(MLContext context, Parameter parameter)
Sweepers\SmacSweeper.cs (2)
70private readonly MLContext _context; 74public SmacSweeper(MLContext context, Arguments args)
TrainerExtensions\BinaryTrainerExtensions.cs (9)
26public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 71public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 93public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 115public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 136public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 157public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 178public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 200public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 222public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\ITrainerExtension.cs (1)
16ITrainerEstimator CreateInstance(MLContext mlContext,
TrainerExtensions\MultiTrainerExtensions.cs (11)
25public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 47public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 67public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 90public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 110public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 133public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 155public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 177public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 199public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 219public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 238public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RankingTrainerExtensions.cs (2)
21public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 44public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RecommendationTrainerExtensions.cs (1)
14public ITrainerEsitmator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TrainerExtensions\RegressionTrainerExtensions.cs (8)
22public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 44public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 66public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 88public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 109public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 130public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 152public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams, 174public ITrainerEstimator CreateInstance(MLContext mlContext, IEnumerable<SweepableParam> sweepParams,
TransformInference\TransformInference.cs (13)
126protected readonly MLContext Context; 128public TransformInferenceExpertBase(MLContext context) 134private static IEnumerable<ITransformInferenceExpert> GetExperts(MLContext context) 168public Label(MLContext context) : base(context) 195public RecommendationColumns(MLContext context) : base(context) 218public GroupId(MLContext context) : base(context) 240public Categorical(MLContext context) : base(context) 290public Boolean(MLContext context) : base(context) 318public Text(MLContext context) : base(context) 344public NumericMissing(MLContext context) : base(context) 372public Image(MLContext context) : base(context) 395public static SuggestedTransform[] InferTransforms(MLContext context, TaskKind task, DatasetColumnInfo[] columns) 424private static SuggestedTransform BuildFinalFeaturesConcatTransform(MLContext context, IEnumerable<SuggestedTransform> suggestedTransforms,
TransformInference\TransformInferenceApi.cs (2)
11public static IEnumerable<SuggestedTransform> InferTransforms(MLContext context, TaskKind task, DatasetColumnInfo[] columns) 16public static IEnumerable<SuggestedTransform> InferTransformsPostTrainer(MLContext context, TaskKind task, DatasetColumnInfo[] columns)
TransformInference\TransformPostTrainerInference.cs (2)
13public static IEnumerable<SuggestedTransform> InferTransforms(MLContext context, TaskKind task, DatasetColumnInfo[] columns) 20private static IEnumerable<SuggestedTransform> InferLabelTransforms(MLContext context, TaskKind task,
Tuner\SmacTuner.cs (2)
25private readonly MLContext _context; 58public SmacTuner(MLContext context,
Utils\BestResultUtil.cs (2)
99public static RunDetail<TMetrics> ToRunDetail<TMetrics>(MLContext context, TrialResult<TMetrics> result, SweepablePipeline pipeline) 111public static CrossValidationRunDetail<TMetrics> ToCrossValidationRunDetail<TMetrics>(MLContext context, TrialResult<TMetrics> result, SweepablePipeline pipeline)
Utils\DatasetColumnInfo.cs (1)
27public static DatasetColumnInfo[] GetDatasetColumnInfo(MLContext context, IDataView data, ColumnInformation columnInfo)
Utils\Logger.cs (1)
15public AutoMLLogger(MLContext context)
Utils\SplitUtil.cs (3)
13public static (IDataView[] trainDatasets, IDataView[] validationDatasets) CrossValSplit(MLContext context, 49public static (IDataView trainData, IDataView validationData) TrainValidateSplit(MLContext context, IDataView trainData, 59public static IDataView DropAllColumnsExcept(MLContext context, IDataView data, IEnumerable<string> columnsToKeep)
Microsoft.ML.AutoML.Samples (8)
AutoFit\BinaryClassificationExperiment.cs (1)
18MLContext mlContext = new MLContext();
AutoFit\MulticlassClassificationExperiment.cs (1)
19MLContext mlContext = new MLContext();
AutoFit\RankingExperiment.cs (1)
22MLContext mlContext = new MLContext();
AutoFit\RecommendationExperiment.cs (1)
25MLContext mlContext = new MLContext();
AutoFit\RegressionExperiment.cs (1)
19MLContext mlContext = new MLContext();
AutoMLExperiment.cs (1)
20var context = new MLContext(seed);
Cifar10.cs (1)
28var context = new MLContext();
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
32var context = new MLContext(seed);
Microsoft.ML.AutoML.Tests (93)
AutoFeaturizerTests.cs (6)
46var context = new MLContext(1); 58var context = new MLContext(1); 70var context = new MLContext(1); 83var context = new MLContext(1); 94var context = new MLContext(1); 106var context = new MLContext(1);
AutoFitTests.cs (16)
44var context = new MLContext(1); 70var context = new MLContext(1); 97var context = new MLContext(1); 124var context = new MLContext(1); 152var context = new MLContext(1); 183var context = new MLContext(1); 213var context = new MLContext(1); 259var context = new MLContext(0); 332var context = new MLContext(seed: 1); 359var context = new MLContext(seed: 1); 382var context = new MLContext(1); 415var mlContext = new MLContext(1); 478var mlContext = new MLContext(1); 520MLContext mlContext = new MLContext(1); 584var context = new MLContext(1); 648var context = new MLContext(1);
AutoMLExperimentTests.cs (15)
35var context = new MLContext(1); 65var context = new MLContext(1); 95var context = new MLContext(1); 121var context = new MLContext(1); 154var context = new MLContext(1); 185var context = new MLContext(1); 212var context = new MLContext(1); 237var context = new MLContext(1); 262var context = new MLContext(1); 287var context = new MLContext(1); 314var context = new MLContext(1); 341var context = new MLContext(1); 379var context = new MLContext(1); 398var context = new MLContext(1); 418var context = new MLContext();
ColumnInferenceTests.cs (5)
32var context = new MLContext(1); 47var context = new MLContext(1); 107var context = new MLContext(1); 203var context = new MLContext(); 219MLContext mlContext = new MLContext();
DatasetDimensionsTests.cs (3)
24var context = new MLContext(1); 44var context = new MLContext(1); 64var context = new MLContext(1);
DatasetUtil.cs (6)
56var context = new MLContext(1); 69var context = new MLContext(1); 82var context = new MLContext(1); 95var context = new MLContext(1); 107var context = new MLContext(1); 118var context = new MLContext(1);
EstimatorExtensionTests.cs (2)
24var context = new MLContext(1); 44var context = new MLContext(1);
GetNextPipelineTests.cs (2)
26var context = new MLContext(1); 51var context = new MLContext(1);
InferredPipelineTests.cs (1)
22var context = new MLContext(1);
MLContextManagerTests.cs (4)
28var mainContext = new MLContext(10); 35var childContext = contextManager.CreateMLContext(); 46var mainContext = new MLContext(10); 48var childContext = contextManager.CreateMLContext();
PurposeInferenceTests.cs (1)
22var context = new MLContext(1);
SplitUtilTests.cs (3)
29var mlContext = new MLContext(1); 45var mlContext = new MLContext(seed: 0); 64var mlContext = new MLContext(seed: 0);
SuggestedPipelineBuilderTests.cs (1)
15private static MLContext _context = new MLContext(1);
SweepableExtensionTest.cs (11)
49var context = new MLContext(); 68var context = new MLContext(); 80var context = new MLContext(); 93var context = new MLContext(); 106var context = new MLContext(); 119var context = new MLContext(); 132var context = new MLContext(); 146var context = new MLContext(); 160var context = new MLContext(); 173var context = new MLContext(); 186var context = new MLContext();
TrainerExtensionsTests.cs (2)
25var context = new MLContext(1); 54var context = new MLContext(1);
TrainValidaionDatasetManagerTest.cs (1)
28var context = new MLContext(1);
TunerTests.cs (8)
32var context = new MLContext(1); 73var context = new MLContext(1); 167var context = new MLContext(1); 202var context = new MLContext(1); 237var context = new MLContext(1); 291var context = new MLContext(1); 341var context = new MLContext(1); 453private SweepablePipeline CreateDummySweepablePipeline(MLContext context)
UserInputValidationTests.cs (4)
105var context = new MLContext(1); 127var context = new MLContext(1); 150var context = new MLContext(1); 348var mlContext = new MLContext(1);
Utils\TaskAgnosticAutoFit.cs (2)
26private MLContext _context; 32internal TaskAgnosticAutoFit(TaskType taskType, MLContext context)
Microsoft.ML.CodeAnalyzer.Tests (1)
Helpers\AdditionalMetadataReferences.cs (1)
27internal static readonly MetadataReference MLNetDataReference = RefFromType<MLContext>();
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
41var mlContext = new MLContext();
Microsoft.ML.CodeGenerator.Tests (61)
ApprovalTests\ConsoleCodeGeneratorTests.cs (4)
544MLContext context = new MLContext(); 600MLContext context = new MLContext(); 637MLContext context = new MLContext(); 1095MLContext context = new MLContext();
CodeGenTests.cs (5)
26var context = new MLContext(); 46var context = new MLContext(); 67var context = new MLContext(); 81var context = new MLContext(); 121var context = new MLContext();
TrainerGeneratorTests.cs (39)
28var context = new MLContext(); 56var context = new MLContext(); 77var context = new MLContext(); 100var context = new MLContext(); 117var context = new MLContext(); 137var context = new MLContext(); 154var context = new MLContext(); 174var context = new MLContext(); 191var context = new MLContext(); 211var context = new MLContext(); 228var context = new MLContext(); 248var context = new MLContext(); 265var context = new MLContext(); 285var context = new MLContext(); 299var context = new MLContext(); 325var context = new MLContext(); 342var context = new MLContext(); 362var context = new MLContext(); 379var context = new MLContext(); 399var context = new MLContext(); 416var context = new MLContext(); 436var context = new MLContext(); 453var context = new MLContext(); 473var context = new MLContext(); 490var context = new MLContext(); 510var context = new MLContext(); 527var context = new MLContext(); 548var context = new MLContext(); 565var context = new MLContext(); 586var context = new MLContext(); 603var context = new MLContext(); 624var context = new MLContext(); 641var context = new MLContext(); 662var context = new MLContext(); 678var context = new MLContext(); 699var context = new MLContext(); 716var context = new MLContext(); 737var context = new MLContext(); 754var context = new MLContext();
TransformGeneratorTests.cs (11)
24var context = new MLContext(); 38var context = new MLContext(); 52var context = new MLContext(); 66var context = new MLContext(); 80var context = new MLContext(); 94var context = new MLContext(); 108var context = new MLContext(); 122var context = new MLContext(); 136var context = new MLContext(); 150var context = new MLContext(); 164var context = new MLContext();
UtilTest.cs (2)
130var context = new MLContext(); 165var context = new MLContext();
Microsoft.ML.Core.Tests (13)
UnitTests\TestContracts.cs (1)
51var env = new MLContext(1);
UnitTests\TestEarlyStoppingCriteria.cs (1)
20var env = new MLContext(1)
UnitTests\TestEntryPoints.cs (7)
744var mlContext = new MLContext(1); 892var mlContext = new MLContext(1); 1053var mlContext = new MLContext(1); 1196var mlContext = new MLContext(1); 1343var mlContext = new MLContext(1); 1359var mlContext = new MLContext(1); 6582var ml = new MLContext(1);
UnitTests\TestHosts.cs (2)
109((MLContext)env).CancelExecution(); 127var env = new MLContext(1);
UnitTests\TestModelLoad.cs (2)
26var env = new MLContext(1).AddStandardComponents(); 44var env = new MLContext(1).AddStandardComponents();
Microsoft.ML.Data (25)
DataLoadSave\DataOperationsCatalog.cs (2)
150/// <param name="seed">The random seed. If unspecified, the random state will be instead derived from the <see cref="MLContext"/>.</param> 305/// <param name="seed">The random seed. If unspecified, the random state will be instead derived from the <see cref="MLContext"/>.</param>
LoggingEventArgs.cs (1)
11/// Provides data for the <see cref="MLContext.Log"/> event.
Model\ModelOperationsCatalog.cs (1)
16/// Class used by <see cref="MLContext"/> to save and load trained models.
TrainCatalog.cs (15)
165/// Class used by <see cref="MLContext"/> to create instances of binary classification components, 183/// Class used by <see cref="MLContext"/> to create instances of binary classification trainers. 305/// Class used by <see cref="MLContext"/> to create instances of binary classification calibrators. 401/// Class used by <see cref="MLContext"/> to create instances of clustering components, 421/// Class used by <see cref="MLContext"/> to create instances of clustering trainers. 484/// Class used by <see cref="MLContext"/> to create instances of multiclass classification components, 501/// Class used by <see cref="MLContext"/> to create instances of multiclass classification trainers. 565/// Class used by <see cref="MLContext"/> to create instances of regression components, 582/// Class used by <see cref="MLContext"/> to create instances of regression trainers. 635/// Class used by <see cref="MLContext"/> to create instances of ranking components, 652/// Class used by <see cref="MLContext"/> to create instances of ranking trainers. 726/// Class used by <see cref="MLContext"/> to create instances of anomaly detection components, 743/// Class used by <see cref="MLContext"/> to create instances of anomaly detection trainers. 795/// Class used by <see cref="MLContext"/> to create instances of forecasting components. 810/// Class used by <see cref="MLContext"/> to create instances of forecasting trainers.
Transforms\CatalogUtils.cs (1)
20/// <see cref="MLContext"/>. Because this is meant to consumed by component authors implementations of this interface
Transforms\TransformsCatalog.cs (5)
10/// Class used by <see cref="MLContext"/> to create instances of transform components. 49/// Class used by <see cref="MLContext"/> to create instances of categorical data transform components. 63/// Class used by <see cref="MLContext"/> to create instances of type conversion data transform components. 77/// Class used by <see cref="MLContext"/> to create instances of text data transform components. 91/// Class used by <see cref="MLContext"/> to create instances of feature selection transform components.
Microsoft.ML.Experimental (3)
MLContextExtensions.cs (3)
10/// Stop the execution of pipeline in <see cref="MLContext"/> 12/// <param name="ctx"><see cref="MLContext"/> reference.</param> 13public static void CancelExecution(this MLContext ctx) => ctx.CancelExecution();
Microsoft.ML.Fairlearn (17)
AutoML\AutoMLExperimentExtension.cs (4)
59var context = serviceProvider.GetRequiredService<MLContext>(); 75var context = serviceProvider.GetRequiredService<MLContext>();
AutoML\TunerFactory.cs (2)
19private readonly MLContext _context; 29_context = provider.GetService<MLContext>();
FairlearnCatalog.cs (1)
11internal FairlearnCatalog(MLContext context)
Metrics\FairlearnMetricCatalog.cs (5)
16private readonly MLContext _context; 18public FairlearnMetricCatalog(MLContext context) 45private readonly MLContext _context; 47public BinaryGroupMetric(MLContext context, IDataView eval, string labelColumn, string predictedColumn, string sensitiveFeatureColumn, string scoreColumn) 153private readonly MLContext _context = new MLContext();
MLContextExtension.cs (3)
8/// Class containing AutoML extension methods to <see cref="MLContext"/> 15/// <param name="mlContext"><see cref="MLContext"/> instance.</param> 17public static FairlearnCatalog Fairlearn(this MLContext mlContext)
Reductions\GridSearchTrialRunner.cs (2)
29private readonly MLContext _context; 36public GridSearchTrailRunner(MLContext context, ITrainValidateDatasetManager datasetManager, string labelColumn, string sensitiveColumn, SweepablePipeline pipeline, ClassificationMoment moment)
Microsoft.ML.Fairlearn.Tests (3)
GridSearchTest.cs (2)
26var context = new MLContext(); 82var context = new MLContext();
MetricTest.cs (1)
14MLContext mlContext;
Microsoft.ML.FastTree (2)
RandomForestClassification.cs (1)
227if (!trainData.Schema.Weight.HasValue && MLContext.OneDalDispatchingEnabled)
RandomForestRegression.cs (1)
366if (!trainData.Schema.Weight.HasValue && MLContext.OneDalDispatchingEnabled)
Microsoft.ML.IntegrationTests (84)
Common.cs (1)
65public static void AssertTestTypeDatasetsAreEqual(MLContext mlContext, IDataView data1, IDataView data2)
DataIO.cs (7)
33var mlContext = new MLContext(seed: 1); 47var mlContext = new MLContext(seed: 1); 68var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 109var mlContext = new MLContext(seed: 1); 119private string SerializeDatasetToFile(MLContext mlContext, IDataView data, char separator) 128private string SerializeDatasetToBinaryFile(MLContext mlContext, IDataView data)
Datasets\Iris.cs (1)
36public static IDataView LoadAsRankingProblem(MLContext mlContext, string filePath, bool hasHeader, char separatorChar, int seed = 1)
Datasets\MnistOneClass.cs (1)
17public static TextLoader GetTextLoader(MLContext mlContext, bool hasHeader, char separatorChar)
Datasets\TrivialMatrixFactorization.cs (1)
24public static IDataView LoadAndFeaturizeFromTextFile(MLContext mlContext, string filePath, bool hasHeader, char separatorChar)
Datasets\TypeTestData.cs (1)
77public static TextLoader GetTextLoader(MLContext mlContext, char separator)
DataTransformation.cs (5)
29var mlContext = new MLContext(seed: 1); 82var mlContext = new MLContext(seed: 1); 130var mlContext = new MLContext(seed: 1); 166var mlContext = new MLContext(seed: 1); 193var mlContext = new MLContext(seed: 1);
Debugging.cs (4)
38var mlContext = new MLContext(seed: 1); 101var mlContext = new MLContext(seed: 1); 130var mlContext = new MLContext(seed: 1); 164var mlContext = new MLContext(seed: 1);
Evaluation.cs (11)
28var mlContext = new MLContext(seed: 1); 58var mlContext = new MLContext(seed: 1); 87var mlContext = new MLContext(seed: 1); 116var mlContext = new MLContext(seed: 1); 144var mlContext = new MLContext(seed: 1); 168private IDataView GetScoredDataForRankingEvaluation(MLContext mlContext) 194var mlContext = new MLContext(seed: 1); 209var mlContext = new MLContext(seed: 1); 227var mlContext = new MLContext(seed: 1); 265var mlContext = new MLContext(seed: 1); 293var mlContext = new MLContext(seed: 1);
Explainability.cs (8)
32var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 114var mlContext = new MLContext(seed: 1); 141var mlContext = new MLContext(seed: 1); 168var mlContext = new MLContext(seed: 1); 205var mlContext = new MLContext(seed: 1); 242var mlContext = new MLContext(seed: 1); 280var mlContext = new MLContext(seed: 1);
IntrospectiveTraining.cs (11)
32var mlContext = new MLContext(seed: 1); 73var mlContext = new MLContext(seed: 1); 134var mlContext = new MLContext(seed: 1); 175var mlContext = new MLContext(seed: 1); 217var mlContext = new MLContext(seed: 1); 255var mlContext = new MLContext(seed: 1); 286var mlContext = new MLContext(seed: 1); 329var mlContext = new MLContext(seed: 1); 387var mlContext = new MLContext(seed: 1); 417private IEstimator<TransformerChain<ClusteringPredictionTransformer<KMeansModelParameters>>> StepOne(MLContext mlContext) 430private IEstimator<TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>>> StepTwo(MLContext mlContext)
ModelFiles.cs (11)
42var mlContext = new MLContext(seed: 1); 89var mlContext = new MLContext(seed: 1); 132var mlContext = new MLContext(1); 238var mlContext = new MLContext(1); 265var mlContext = new MLContext(1); 322var mlContext = new MLContext(1); 355var mlContext = new MLContext(1); 384var mlContext = new MLContext(1); 422var mlContext = new MLContext(1); 455var mlContext = new MLContext(1); 476private void Load(MLContext mlContext, string filename, out ITransformer loadedWithSchema, out DataViewSchema loadedSchema,
ONNX.cs (3)
34var mlContext = new MLContext(seed: 1); 84var mlContext = new MLContext(seed: 1); 136var mlContext = new MLContext(seed: 1);
Prediction.cs (3)
38var mlContext = new MLContext(seed: 1); 81var mlContext = new MLContext(seed: 1); 104var mlContext = new MLContext(seed: 1);
SchemaDefinitionTests.cs (1)
16private MLContext _ml;
Training.cs (11)
29var mlContext = new MLContext(seed: 1); 83var mlContext = new MLContext(seed: 1); 127var mlContext = new MLContext(seed: 1); 171var mlContext = new MLContext(seed: 1); 215var mlContext = new MLContext(seed: 1); 259var mlContext = new MLContext(seed: 1); 309var mlContext = new MLContext(seed: 1); 353var mlContext = new MLContext(seed: 1); 397var mlContext = new MLContext(seed: 1); 446var mlContext = new MLContext(seed: 1); 477var mlContext = new MLContext(seed: 1);
Validation.cs (4)
35var mlContext = new MLContext(seed: 1); 67var mlContext = new MLContext(1); 101var mlContext = new MLContext(seed: 1); 151var mlContext = new MLContext(1);
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
234/// If not specified, <see cref="MLContext"/> will generate a random seed to be used.
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
433if (MLContext.OneDalDispatchingEnabled)
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (1)
98var env = new MLContext(null);
OnnxTransformTests.cs (4)
243var env = new MLContext(1); 294var env = new MLContext(1); 528var mlContext = new MLContext(1); 554var mlContext = new MLContext(seed: 1);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
752/// <param name="seed">The random seed. If unspecified random state will be instead derived from the <see cref="MLContext"/>.</param>
Microsoft.ML.PerformanceTests (29)
BenchmarkBase.cs (1)
44var mlContext = new MLContext(1);
CacheDataViewBench.cs (1)
30var ctx = new MLContext(1);
FeaturizeTextBench.cs (1)
19private MLContext _mlContext;
HashBench.cs (1)
74private readonly MLContext _env = new MLContext(1);
Helpers\EnvironmentFactory.cs (4)
14internal static MLContext CreateClassificationEnvironment<TLoader, TTransformer, TTrainer, TModel>() 20var ctx = new MLContext(1); 30internal static MLContext CreateRankingEnvironment<TEvaluator, TLoader, TTransformer, TTrainer, TModel>() 36var ctx = new MLContext(1);
Helpers\ExecuteMaml.cs (1)
11public static void ExecuteMamlCommand(this string command, MLContext environment)
ImageClassificationBench.cs (1)
23private MLContext _mlContext;
KMeansAndLogisticRegressionBench.cs (1)
21var ml = new MLContext(seed: 1);
Numeric\Ranking.cs (4)
45var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>(); 60var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, LightGbmMulticlassTrainer, OneVersusAllModelParameters>(); 99var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>(); 109var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>();
PredictionEngineBench.cs (3)
38var env = new MLContext(seed: 1); 77var mlContext = new MLContext(seed: 1); 112var env = new MLContext(seed: 1);
RffTransform.cs (1)
31var mlContext = new MLContext(1);
ShuffleRowsBench.cs (1)
15private MLContext _context;
StochasticDualCoordinateAscentClassifierBench.cs (1)
24private readonly MLContext _mlContext = new MLContext(seed: 1);
Text\MultiClassClassification.cs (6)
40var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 55var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, LightGbmMulticlassTrainer, OneVersusAllModelParameters>(); 71var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 87var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, SdcaMaximumEntropyMulticlassTrainer, MaximumEntropyModelParameters>(); 115var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>(); 126var environment = EnvironmentFactory.CreateClassificationEnvironment<TextLoader, OneHotEncodingTransformer, AveragedPerceptronTrainer, LinearBinaryModelParameters>();
TextLoaderBench.cs (1)
19private MLContext _mlContext;
TextPredictionEngineCreation.cs (1)
16private MLContext _context;
Microsoft.ML.Predictor.Tests (7)
CmdLine\CmdLine.cs (2)
101var env = new MLContext(seed: 42); 111var env = new MLContext(seed: 42);
CmdLine\CmdLineReverseTest.cs (2)
25var env = new MLContext(seed: 42); 84var ml = new MLContext(1);
TestGamPublicInterfaces.cs (1)
24var mlContext = new MLContext(seed: 1);
TestIniModels.cs (2)
518var mlContext = new MLContext(seed: 0); 557var mlContext = new MLContext(seed: 0);
Microsoft.ML.Recommender (1)
RecommenderCatalog.cs (1)
19public static RecommendationCatalog Recommendation(this MLContext ctx) => new RecommendationCatalog(ctx);
Microsoft.ML.Samples (225)
Dynamic\DataOperations\BootstrapSample.cs (1)
13var mlContext = new MLContext();
Dynamic\DataOperations\Cache.cs (2)
14var mlContext = new MLContext(); 60TimeToScanIDataView(MLContext mlContext, IDataView data)
Dynamic\DataOperations\CrossValidationSplit.cs (1)
15var mlContext = new MLContext();
Dynamic\DataOperations\DataViewEnumerable.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByColumn.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByCustomPredicate.cs (1)
14var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
17var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
17var mlContext = new MLContext();
Dynamic\DataOperations\FilterRowsByStatefulCustomPredicate.cs (1)
14var mlContext = new MLContext();
Dynamic\DataOperations\LoadFromEnumerable.cs (1)
22var mlContext = new MLContext();
Dynamic\DataOperations\LoadingSvmLight.cs (1)
44var mlContext = new MLContext();
Dynamic\DataOperations\LoadingText.cs (1)
42var mlContext = new MLContext();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\DataOperations\ShuffleRows.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\SkipRows.cs (1)
15var mlContext = new MLContext();
Dynamic\DataOperations\TakeRows.cs (1)
16var mlContext = new MLContext();
Dynamic\DataOperations\TrainTestSplit.cs (1)
15var mlContext = new MLContext();
Dynamic\ModelOperations\OnnxConversion.cs (1)
36var mlContext = new MLContext(seed: 0);
Dynamic\ModelOperations\SaveLoadModel.cs (1)
14var mlContext = new MLContext();
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
14var mlContext = new MLContext();
Dynamic\NgramExtraction.cs (1)
14var ml = new MLContext();
Dynamic\SimpleDataViewImplementation.cs (1)
35var mlContext = new MLContext();
Dynamic\TensorFlow\ImageClassification.cs (1)
37var mlContext = new MLContext();
Dynamic\TensorFlow\TextClassification.cs (1)
21var mlContext = new MLContext();
Dynamic\TextTransform.cs (1)
15var ml = new MLContext();
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
16var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
19var mlContext = new MLContext();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
16var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Clustering\KMeans.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 127MLContext mlContext, ITransformer trainedModel) 152private static void EvaluateModel(MLContext mlContext,
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (3)
41MLContext mlContext = new MLContext(seed: 1); 153MLContext mlContext, ITransformer trainedModel) 178private static void EvaluateModel(MLContext mlContext,
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 148MLContext mlContext, ITransformer trainedModel, 176private static void EvaluateModel(MLContext mlContext,
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 136MLContext mlContext, ITransformer trainedModel) 161private static void EvaluateModel(MLContext mlContext,
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
23var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
18var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
24var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
25var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (1)
29var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastForest.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTree.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\Gam.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
19var mlContext = new MLContext();
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbm.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
17var mlContext = new MLContext();
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
21var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
18var mlContext = new MLContext();
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
25var mlContext = new MLContext(seed: 3);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
25var mlContext = new MLContext(seed: 3);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Trainers\Regression\Sdca.cs (1)
17var mlContext = new MLContext(seed: 0);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
18var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\ApplyOnnxModel.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
22var mlContext = new MLContext();
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
15var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotEncodingMultiColumn.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Categorical\OneHotHashEncodingMultiColumn.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\Concatenate.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Conversion\ConvertType.cs (1)
11var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
17var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\Hash.cs (1)
14var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
16var mlContext = new MLContext(seed: 1);
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToBinaryVector.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
19var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\Conversion\MapKeyToVector.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapKeyToVectorMultiColumn.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValue.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
19var mlContext = new MLContext();
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\CopyColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\CustomMapping.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
20var mlContext = new MLContext();
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
23var mlContext = new MLContext();
Dynamic\Transforms\DropColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Expression.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (1)
12var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
22var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\IndicateMissingValues.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\NormalizeBinning.cs (1)
18var mlContext = new MLContext();
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeLpNorm.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMinMax.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\SelectColumns.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\StatefulCustomMapping.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\NormalizeText.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
14var mlContext = new MLContext();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
13var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
19var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
15var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
22var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
22var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
16var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
23var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
21var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
19var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
15var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
20var ml = new MLContext();
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
18var ml = new MLContext();
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
17var ml = new MLContext();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (1)
16var mlContext = new MLContext();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (1)
17var mlContext = new MLContext();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
20var mlContext = new MLContext(seed: 0);
Dynamic\WithOnFitDelegate.cs (1)
18var mlContext = new MLContext();
Microsoft.ML.Samples.GPU (14)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
37var mlContext = new MLContext();
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
21var mlContext = new MLContext();
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 127MLContext mlContext, ITransformer trainedModel) 152private static void EvaluateModel(MLContext mlContext,
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (3)
41MLContext mlContext = new MLContext(seed: 1); 153MLContext mlContext, ITransformer trainedModel) 178private static void EvaluateModel(MLContext mlContext,
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 148MLContext mlContext, ITransformer trainedModel, 176private static void EvaluateModel(MLContext mlContext,
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (3)
35MLContext mlContext = new MLContext(seed: 1); 136MLContext mlContext, ITransformer trainedModel) 161private static void EvaluateModel(MLContext mlContext,
Microsoft.ML.Samples.OneDal (5)
Program.cs (5)
15MLContext mlContext, string trainingFile, string testingFile, 64public static double[] RunRandomForestClassification(MLContext mlContext, IDataView trainingData, IDataView testingData, string labelName, int numberOfTrees, int numberOfLeaves) 96public static double[] RunRandomForestRegression(MLContext mlContext, IDataView trainingData, IDataView testingData, string labelName, int numberOfTrees, int numberOfLeaves) 128public static double[] RunOLSRegression(MLContext mlContext, IDataView trainingData, IDataView testingData, string labelName) 165var mlContext = new MLContext(seed: 42);
Microsoft.ML.SamplesUtils (7)
SamplesDatasetUtils.cs (7)
44public static IDataView LoadHousingRegressionDataset(MLContext mlContext) 83/// <param name="mlContext"><see cref="MLContext"/> used for data loading and processing.</param> 88public static IDataView LoadFeaturizedAdultDataset(MLContext mlContext) 115/// <param name="mlContext"><see cref="MLContext"/> used for data loading and processing.</param> 120public static IDataView LoadRawAdultDataset(MLContext mlContext) 225/// calling <see cref="DataOperationsCatalog.CreateEnumerable{TRow}(IDataView, bool, bool, SchemaDefinition)"/> via on <see cref="MLContext"/>. 236/// calling <see cref="DataOperationsCatalog.CreateEnumerable{TRow}(IDataView, bool, bool, SchemaDefinition)"/> via on <see cref="MLContext"/>.
Microsoft.ML.Sweeper.Tests (12)
SweeperTest.cs (2)
22var env = new MLContext(42); 39var env = new MLContext(42);
TestSweeper.cs (10)
93var env = new MLContext(42); 133var env = new MLContext(42); 183var env = new MLContext(42); 233var env = new MLContext(42); 301var env = new MLContext(42); 353var env = new MLContext(42); 431var env = new MLContext(42); 541var env = new MLContext(42); 597var env = new MLContext(42); 645var env = new MLContext(42);
Microsoft.ML.TensorFlow.Tests (5)
TensorFlowEstimatorTests.cs (4)
150var mlContext = new MLContext(seed: 1); 192var mlContext = new MLContext(seed: 1); 238var mlContext = new MLContext(seed: 1); 286MLContext context = new MLContext(seed: 1);
TensorflowTests.cs (1)
64private MLContext _mlContext = new MLContext(seed: 1);
Microsoft.ML.TestFramework (4)
BaseTestBaseline.cs (1)
85protected MLContext ML;
TestCommandBase.cs (1)
532var env = new MLContext(seed: 42);
TestSparseDataView.cs (2)
50var env = new MLContext(1); 90var env = new MLContext(1);
Microsoft.ML.Tests (190)
AnomalyDetectionTests.cs (5)
59var mlContext = new MLContext(seed: 0); 89var mlContext = new MLContext(seed: 0); 136private static void ExecutePipelineWithGivenRandomizedPcaTrainer(MLContext mlContext, Trainers.RandomizedPcaTrainer trainer) 180private static void ExecuteRandomizedPcaTrainerChangeThreshold(MLContext mlContext, Trainers.RandomizedPcaTrainer trainer) 262var mlContext = new MLContext(seed: 0);
CollectionsDataViewTest.cs (9)
159var env = new MLContext(1); 181var env = new MLContext(1); 233var env = new MLContext(1); 259var env = new MLContext(1); 313var env = new MLContext(1); 343var env = new MLContext(1); 394var env = new MLContext(1); 445var env = new MLContext(1); 482var env = new MLContext(1);
DatabaseLoaderTests.cs (6)
52var mlContext = new MLContext(seed: 1); 97var mlContext = new MLContext(seed: 1); 133var mlContext = new MLContext(seed: 1); 165var mlContext = new MLContext(seed: 1); 197var mlContext = new MLContext(seed: 1); 257var mlContext = new MLContext(seed: 1);
EvaluateTests.cs (1)
33var mlContext = new MLContext(seed: 1);
ImagesTests.cs (7)
31var env = new MLContext(1); 106var env = new MLContext(1); 138var env = new MLContext(1); 1009var env = new MLContext(1); 1085var mlContext = new MLContext(0); 1126public static List<InMemoryImage> LoadFromTsv(MLContext mlContext, string tsvPath, string imageFolder) 1177var mlContext = new MLContext(seed: 1);
OnnxConversionTest.cs (39)
70var mlContext = new MLContext(seed: 1); 145var mlContext = new MLContext(seed: 1); 178var mlContext = new MLContext(seed: 1); 219var mlContext = new MLContext(seed: 1); 260var mlContext = new MLContext(seed: 1); 384var mlContext = new MLContext(seed: 1); 413var mlContext = new MLContext(seed: 1); 464var mlContext = new MLContext(seed: 1); 497var env = new MLContext(1); 566var mlContext = new MLContext(seed: 1); 597var mlContext = new MLContext(seed: 1); 621var mlContext = new MLContext(seed: 1); 766var mlContext = new MLContext(seed: 1); 785var mlContext = new MLContext(seed: 1); 848var mlContext = new MLContext(seed: 1); 868var mlContext = new MLContext(seed: 1); 940var mlContext = new MLContext(seed: 1); 966var mlContext = new MLContext(seed: 1); 1001var mlContext = new MLContext(); 1059var mlContext = new MLContext(); 1098var mlContext = new MLContext(); 1152var mlContext = new MLContext(seed: 1); 1188var mlContext = new MLContext(seed: 1); 1226var mlContext = new MLContext(seed: 1); 1391var mlContext = new MLContext(seed: 1); 1437var mlContext = new MLContext(seed: 1); 1464var mlContext = new MLContext(seed: 1); 1539var mlContext = new MLContext(); 1563var mlContext = new MLContext(); 1599var mlContext = new MLContext(seed: 1); 1644var mlContext = new MLContext(seed: 1); 1698var mlContext = new MLContext(seed: 1); 1716var mlContext = new MLContext(seed: 1); 1761var mlContext = new MLContext(); 1843var mlContext = new MLContext(seed: 1); 1882var mlContext = new MLContext(seed: 1); 1930var mlContext = new MLContext(seed: 1); 1971var mlContext = new MLContext(seed: 1); 2022var mlContext = new MLContext();
OnnxSequenceTypeWithAttributesTest.cs (2)
43var ctx = new MLContext(1); 82var ctx = new MLContext(1);
PermutationFeatureImportanceTests.cs (20)
53var ml2 = new MLContext(42); 62var ml2 = new MLContext(42); 127var ml2 = new MLContext(42); 136var ml2 = new MLContext(42); 195var ml2 = new MLContext(42); 204var ml2 = new MLContext(42); 283var ml2 = new MLContext(42); 292var ml2 = new MLContext(42); 358var ml2 = new MLContext(42); 367var ml2 = new MLContext(42); 432var ml2 = new MLContext(42); 441var ml2 = new MLContext(42); 540var ml2 = new MLContext(42); 549var ml2 = new MLContext(42); 613var ml2 = new MLContext(42); 622var ml2 = new MLContext(42); 692var ml2 = new MLContext(0); 701var ml2 = new MLContext(0); 760var ml2 = new MLContext(42); 769var ml2 = new MLContext(42);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (19)
38var mlContext = new MLContext(1); 76var mlContext = new MLContext(); 147var mlContext = new MLContext(1); 215var mlContext = new MLContext(1); 274var mlContext = new MLContext(1); 301var mlContext = new MLContext(1); 332var context = new MLContext(1); 372var context = new MLContext(1); 407var context = new MLContext(1); 443var context = new MLContext(1); 501var mlContext = new MLContext(1); 570var mlContext = new MLContext(1); 633var mlContext = new MLContext(1); 682var mlContext = new MLContext(1); 705var mlContext = new MLContext(1); 737private static void RunEndToEnd(MLContext mlContext, IDataView trainData, string modelPath) 755var newContext = new MLContext(1); 765public static IDataView PrepareData(MLContext mlContext, IDataView data) 774public static ITransformer TrainModel(MLContext mlContext, IDataView trainData)
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
29var ml = new MLContext(1);
Scenarios\Api\Estimators\Extensibility.cs (1)
29var ml = new MLContext(1);
Scenarios\Api\Estimators\MultithreadedPrediction.cs (1)
27var ml = new MLContext(seed: 1);
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
27var ml = new MLContext(1); 75var mlContext = new MLContext(seed: 1);
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (2)
25var ml = new MLContext(seed: 1); 62var ml = new MLContext(seed: 1);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
23var ml = new MLContext(seed: 1);
Scenarios\Api\TestApi.cs (7)
66var env = new MLContext(seed: 0); 151var env = new MLContext(seed: 42); 173var mlContext = new MLContext(0); 200var mlContext = new MLContext(0); 298var mlContext = new MLContext(0); 346var mlContext = new MLContext(0); 418var mlContext = new MLContext(0);
Scenarios\ClusteringTests.cs (1)
57var mlContext = new MLContext(seed: 1);
Scenarios\GetColumnTests.cs (2)
28var mlContext = new MLContext(1); 70var mlContext = new MLContext(1);
Scenarios\IrisPlantClassificationTests.cs (1)
20var mlContext = new MLContext(seed: 1);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
16var mlContext = new MLContext(seed: 1);
Scenarios\OvaTest.cs (4)
21var mlContext = new MLContext(seed: 1); 54var mlContext = new MLContext(seed: 1); 90var mlContext = new MLContext(seed: 1); 125var mlContext = new MLContext(seed: 1);
Scenarios\RegressionTest.cs (1)
15var context = new MLContext();
Scenarios\WordBagTest.cs (2)
16var mlContext = new MLContext(1); 53var mlContext = new MLContext(1);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
18var mlContext = new MLContext(seed: 1);
TextLoaderTests.cs (15)
583var mlContext = new MLContext(seed: 1); 591var mlContext = new MLContext(seed: 1); 609var mlContext = new MLContext(seed: 1); 733var mlContext = new MLContext(1); 813var mlContext = new MLContext(1); 832var mlContext = new MLContext(1); 890var mlContext = new MLContext(seed: 1); 984var mlContext = new MLContext(seed: 1); 1036var mlContext = new MLContext(seed: 1); 1183var mlContext = new MLContext(1); 1241var mlContext = new MLContext(seed: 1); 1253var mlContext = new MLContext(seed: 1); 1268var mlContext = new MLContext(seed: 1); 1373var mlContext = new MLContext(seed: 1); 1424var mlContext = new MLContext(seed: 1);
TrainerEstimators\CalibratorEstimators.cs (1)
150var mlContext = new MLContext(0);
TrainerEstimators\FAFMEstimator.cs (2)
21var mlContext = new MLContext(seed: 0); 42var mlContext = new MLContext(seed: 0);
TrainerEstimators\MatrixFactorizationTests.cs (8)
59var mlContext = new MLContext(seed: 1); 216var mlContext = new MLContext(seed: 1); 327var mlContext = new MLContext(seed: 1); 447var mlContext = new MLContext(seed: 1); 534var mlContext = new MLContext(seed: 1); 591var mlContext = new MLContext(seed: 1); 647var mlContext = new MLContext(seed: 0); 774var mlContext = new MLContext(seed: 1);
TrainerEstimators\SdcaTests.cs (6)
64var mlContext = new MLContext(1); 108var mlContext = new MLContext(0); 164var mlContext = new MLContext(0); 223var mlContext = new MLContext(1); 265var mlContext = new MLContext(1); 300var mlContext = new MLContext(1);
TrainerEstimators\TreeEstimators.cs (5)
460var mlContext = new MLContext(seed: 0); 742var mlContext = new MLContext(seed: 0); 1025var context = new MLContext(seed: 1); 1071var context = new MLContext(seed: 1); 1099var context = new MLContext(seed: 1);
Transformers\CategoricalTests.cs (2)
107var mlContext = new MLContext(1); 130var mlContext = new MLContext(1);
Transformers\ConvertTests.cs (1)
283var mlContext = new MLContext(1);
Transformers\CopyColumnEstimatorTests.cs (6)
48var env = new MLContext(1); 60var env = new MLContext(1); 78var env = new MLContext(1); 97var env = new MLContext(1); 115var env = new MLContext(1); 134var env = new MLContext(1);
Transformers\CustomMappingTests.cs (2)
66var tempoEnv = new MLContext(1); 179var tempoEnv = new MLContext();
Transformers\KeyToVectorEstimatorTests.cs (1)
252MLContext mlContext = new MLContext(1);
Transformers\NormalizerTests.cs (1)
222var context = new MLContext(seed: 0);
Transformers\TextFeaturizerTests.cs (1)
719var ml = new MLContext(1);
Transformers\WordBagTransformerTests.cs (3)
28var mlContext = new MLContext(1); 57var mlContext = new MLContext(1); 85var mlContext = new MLContext(1);
Microsoft.ML.TimeSeries (4)
PredictionEngine.cs (4)
75/// <param name="env">Usually <see cref="MLContext"/>.</param> 98/// <param name="env">Usually <see cref="MLContext"/>.</param> 386/// <param name="env">Usually <see cref="MLContext"/></param> 418/// <param name="env">Usually <see cref="MLContext"/></param>
Microsoft.ML.TimeSeries.Tests (24)
TimeSeriesDirectApi.cs (19)
110var env = new MLContext(1); 151var env = new MLContext(1); 215var ml = new MLContext(seed: 1); 291var ml = new MLContext(seed: 1); 354var env = new MLContext(1); 424var ml = new MLContext(seed: 1); 532var ml = new MLContext(1); 588var ml = new MLContext(1); 678var ml = new MLContext(1); 725var ml = new MLContext(1); 780var ml = new MLContext(1); 839var ml = new MLContext(1); 896var ml = new MLContext(1); 960var ml = new MLContext(1); 987var ml = new MLContext(1); 1037var ml = new MLContext(1); 1074var mlContext = new MLContext(); 1187var ml = new MLContext(1); 1221var ml = new MLContext(1);
TimeSeriesEstimatorTests.cs (1)
87var ml = new MLContext(seed: 1);
TimeSeriesSimpleApiTests.cs (4)
41var env = new MLContext(1); 79var env = new MLContext(1); 123var env = new MLContext(1); 173var env = new MLContext(1);
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
171var mlContext = new MLContext();