270 references to GetEnvironment
Microsoft.ML.AutoML (4)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Data (58)
DataLoadSave\Text\TextLoaderSaverCatalog.cs (9)
71return new TextLoader(CatalogUtils.GetEnvironment(catalog), options: options, dataSample: dataSample);
87=> new TextLoader(CatalogUtils.GetEnvironment(catalog), options, dataSample);
120=> TextLoader.CreateTextLoader<TInput>(CatalogUtils.GetEnvironment(catalog), hasHeader, separatorChar, allowQuoting,
134=> TextLoader.CreateTextLoader<TInput>(CatalogUtils.GetEnvironment(catalog), options, dataSample);
181var loader = new TextLoader(CatalogUtils.GetEnvironment(catalog), options: options);
204var env = catalog.GetEnvironment();
245return TextLoader.CreateTextLoader<TInput>(CatalogUtils.GetEnvironment(catalog), hasHeader, separatorChar,
263return TextLoader.CreateTextLoader<TInput>(CatalogUtils.GetEnvironment(catalog), options)
298var env = catalog.GetEnvironment();
TrainCatalog.cs (5)
151IHostEnvironment IInternalCatalog.Environment => Owner.GetEnvironment();
329return new NaiveCalibratorEstimator(Owner.GetEnvironment(), labelColumnName, scoreColumnName);
349return new PlattCalibratorEstimator(Owner.GetEnvironment(), labelColumnName, scoreColumnName, exampleWeightColumnName);
370return new FixedPlattCalibratorEstimator(Owner.GetEnvironment(), slope, offset, scoreColumnName);
395return new IsotonicCalibratorEstimator(Owner.GetEnvironment(), labelColumnName, scoreColumnName, exampleWeightColumnName);
Transforms\ConversionsExtensionsCatalog.cs (28)
47=> new HashingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName, numberOfBits, maximumNumberOfInverts);
66=> new HashingEstimator(CatalogUtils.GetEnvironment(catalog), columns);
84=> new TypeConvertingEstimator(CatalogUtils.GetEnvironment(catalog), new[] { new TypeConvertingEstimator.ColumnOptions(outputColumnName, outputKind, inputColumnName) });
104var env = CatalogUtils.GetEnvironment(catalog);
120=> new TypeConvertingEstimator(CatalogUtils.GetEnvironment(catalog), columns);
140=> new KeyToValueMappingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName);
161var env = CatalogUtils.GetEnvironment(catalog);
175=> new KeyToVectorMappingEstimator(CatalogUtils.GetEnvironment(catalog), columns);
195=> new KeyToVectorMappingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName, outputCountVector);
215var env = CatalogUtils.GetEnvironment(catalog);
254=> new ValueToKeyMappingEstimator(CatalogUtils.GetEnvironment(catalog),
289var env = CatalogUtils.GetEnvironment(catalog);
309=> new ValueToKeyMappingEstimator(CatalogUtils.GetEnvironment(catalog), columns, keyData);
342var lookupMap = DataViewHelper.CreateDataView(catalog.GetEnvironment(), keys, values,
346return new ValueMappingEstimator<TInputType, TOutputType>(catalog.GetEnvironment(), lookupMap,
369var env = CatalogUtils.GetEnvironment(catalog);
374var lookupMap = DataViewHelper.CreateDataView(catalog.GetEnvironment(), keys, values,
378return new ValueMappingEstimator<TInputType, TOutputType>(catalog.GetEnvironment(), lookupMap,
403var env = CatalogUtils.GetEnvironment(catalog);
408var lookupMap = DataViewHelper.CreateDataView(catalog.GetEnvironment(), keys, values,
412return new ValueMappingEstimator<TInputType, TOutputType>(catalog.GetEnvironment(), lookupMap,
447var lookupMap = DataViewHelper.CreateDataView(catalog.GetEnvironment(), keys, values,
451return new ValueMappingEstimator<TInputType, TOutputType>(catalog.GetEnvironment(), lookupMap,
473var env = CatalogUtils.GetEnvironment(catalog);
478var lookupMap = DataViewHelper.CreateDataView(catalog.GetEnvironment(), keys, values,
482return new ValueMappingEstimator<TInputType, TOutputType>(catalog.GetEnvironment(), lookupMap,
512return new ValueMappingEstimator(CatalogUtils.GetEnvironment(catalog), lookupMap, keyColumn, valueColumn,
532var env = CatalogUtils.GetEnvironment(catalog);
Transforms\ExplainabilityCatalog.cs (2)
43=> new FeatureContributionCalculatingEstimator(CatalogUtils.GetEnvironment(catalog), predictionTransformer.Model, numberOfPositiveContributions, numberOfNegativeContributions, predictionTransformer.FeatureColumnName, normalize);
71=> new FeatureContributionCalculatingEstimator(CatalogUtils.GetEnvironment(catalog), predictionTransformer.Model.SubModel, numberOfPositiveContributions, numberOfNegativeContributions, predictionTransformer.FeatureColumnName, normalize);
Microsoft.ML.FastTree (23)
Microsoft.ML.ImageAnalytics (10)
ExtensionsCatalog.cs (10)
33=> new ImageGrayscalingEstimator(CatalogUtils.GetEnvironment(catalog), new[] { (outputColumnName, inputColumnName ?? outputColumnName) });
50var env = CatalogUtils.GetEnvironment(catalog);
72=> new ImageLoadingEstimator(CatalogUtils.GetEnvironment(catalog), imageFolder, true, new[] { (outputColumnName, inputColumnName ?? outputColumnName) });
91=> new ImageLoadingEstimator(CatalogUtils.GetEnvironment(catalog), imageFolder, false, new[] { (outputColumnName, inputColumnName ?? outputColumnName) });
125=> new ImagePixelExtractingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName, colorsToExtract, orderOfExtraction, interleavePixelColors, offsetImage, scaleImage, outputAsFloatArray);
135=> new ImagePixelExtractingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
163=> new ImageResizingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, imageWidth, imageHeight, inputColumnName, resizing, cropAnchor);
186=> new ImageResizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
195=> new VectorToImageConvertingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
234=> new VectorToImageConvertingEstimator(CatalogUtils.GetEnvironment(catalog), imageHeight, imageWidth, outputColumnName, inputColumnName, colorsPresent, orderOfColors, interleavedColors, scaleImage, offsetImage);
Microsoft.ML.KMeansClustering (2)
Microsoft.ML.LightGbm (12)
Microsoft.ML.Mkl.Components (6)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.PCA (4)
Microsoft.ML.Recommender (2)
Microsoft.ML.StandardTrainers (35)
StandardTrainersCatalog.cs (32)
50var env = CatalogUtils.GetEnvironment(catalog);
74var env = CatalogUtils.GetEnvironment(catalog);
107var env = CatalogUtils.GetEnvironment(catalog);
131var env = CatalogUtils.GetEnvironment(catalog);
162var env = CatalogUtils.GetEnvironment(catalog);
183var env = CatalogUtils.GetEnvironment(catalog);
213var env = CatalogUtils.GetEnvironment(catalog);
235var env = CatalogUtils.GetEnvironment(catalog);
267var env = CatalogUtils.GetEnvironment(catalog);
289var env = CatalogUtils.GetEnvironment(catalog);
318var env = CatalogUtils.GetEnvironment(catalog);
339var env = CatalogUtils.GetEnvironment(catalog);
370var env = CatalogUtils.GetEnvironment(catalog);
391var env = CatalogUtils.GetEnvironment(catalog);
428var env = CatalogUtils.GetEnvironment(catalog);
450var env = CatalogUtils.GetEnvironment(catalog);
497var env = CatalogUtils.GetEnvironment(catalog);
520var env = CatalogUtils.GetEnvironment(catalog);
554var env = CatalogUtils.GetEnvironment(catalog);
575var env = CatalogUtils.GetEnvironment(catalog);
608var env = CatalogUtils.GetEnvironment(catalog);
628var env = CatalogUtils.GetEnvironment(catalog);
661var env = CatalogUtils.GetEnvironment(catalog);
682var env = CatalogUtils.GetEnvironment(catalog);
704return new NaiveBayesMulticlassTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, featureColumnName);
762var env = CatalogUtils.GetEnvironment(catalog);
801var env = CatalogUtils.GetEnvironment(catalog);
830return new LinearSvmTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, featureColumnName, exampleWeightColumnName, numberOfIterations);
851return new LinearSvmTrainer(CatalogUtils.GetEnvironment(catalog), options);
875return new PriorTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, exampleWeightColumnName);
890=> new LdSvmTrainer(catalog.GetEnvironment(), options);
929return new LdSvmTrainer(catalog.GetEnvironment(), options);
Microsoft.ML.TensorFlow (2)
Microsoft.ML.TimeSeries (9)
ExtensionsCatalog.cs (9)
63=> new IidChangePointEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, confidence, changeHistoryLength, inputColumnName, martingale, eps);
112=> new IidSpikeEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, confidence, pvalueHistoryLength, inputColumnName, side);
169=> new SsaChangePointEstimator(CatalogUtils.GetEnvironment(catalog), new SsaChangePointDetector.Options
233=> new SsaSpikeEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, confidence, pvalueHistoryLength, trainingWindowSize, seasonalityWindowSize, inputColumnName, side, errorFunction);
257=> new SrCnnAnomalyEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, windowSize, backAddWindowSize, lookaheadWindowSize, averagingWindowSize, judgementWindowSize, threshold, inputColumnName);
316=> new SrCnnEntireAnomalyDetector(CatalogUtils.GetEnvironment(catalog), input, outputColumnName, inputColumnName, options);
367IHostEnvironment host = CatalogUtils.GetEnvironment(catalog);
421CatalogUtils.GetEnvironment(catalog),
480new SsaForecastingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName, windowSize, seriesLength, trainSize,
Microsoft.ML.TorchSharp (10)
TorchSharpCatalog.cs (10)
51=> new TextClassificationTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, outputColumnName, scoreColumnName, sentence1ColumnName, sentence2ColumnName, batchSize, maxEpochs, validationSet, architecture);
64=> new TextClassificationTrainer(CatalogUtils.GetEnvironment(catalog), options);
91=> new SentenceSimilarityTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, scoreColumnName, sentence1ColumnName, sentence2ColumnName, batchSize, maxEpochs, validationSet, architecture);
104=> new SentenceSimilarityTrainer(CatalogUtils.GetEnvironment(catalog), options);
128=> new ObjectDetectionTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, predictedLabelColumnName, scoreColumnName, boundingBoxColumnName, predictedBoundingBoxColumnName, imageColumnName, maxEpoch);
139=> new ObjectDetectionTrainer(CatalogUtils.GetEnvironment(catalog), options);
225=> new NerTrainer(CatalogUtils.GetEnvironment(catalog), labelColumnName, outputColumnName, sentence1ColumnName, batchSize, maxEpochs, validationSet, architecture);
236=> new NerTrainer(CatalogUtils.GetEnvironment(catalog), options);
270=> new QATrainer(CatalogUtils.GetEnvironment(catalog), contextColumnName, questionColumnName, trainingAnswerColumnName, answerIndexColumnName, predictedAnswerColumnName, scoreColumnName, topK, batchSize, maxEpochs, validationSet, architecture);
283=> new QATrainer(CatalogUtils.GetEnvironment(catalog), options);
Microsoft.ML.Transforms (85)
Microsoft.ML.Vision (3)