58 references to GetEnvironment
Microsoft.ML.Data (58)
DataLoadSave\Binary\BinaryLoaderSaverCatalog.cs (3)
28
var env = catalog.
GetEnvironment
();
55
var env = catalog.
GetEnvironment
();
82
var env = catalog.
GetEnvironment
();
DataLoadSave\Database\DatabaseLoaderCatalog.cs (2)
32
=> new DatabaseLoader(CatalogUtils.
GetEnvironment
(catalog), options);
40
=> DatabaseLoader.CreateDatabaseLoader<TInput>(CatalogUtils.
GetEnvironment
(catalog));
DataLoadSave\Text\TextLoaderSaverCatalog.cs (9)
71
return 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);
181
var loader = new TextLoader(CatalogUtils.
GetEnvironment
(catalog), options: options);
204
var env = catalog.
GetEnvironment
();
245
return TextLoader.CreateTextLoader<TInput>(CatalogUtils.
GetEnvironment
(catalog), hasHeader, separatorChar,
263
return TextLoader.CreateTextLoader<TInput>(CatalogUtils.
GetEnvironment
(catalog), options)
298
var env = catalog.
GetEnvironment
();
TrainCatalog.cs (5)
151
IHostEnvironment IInternalCatalog.Environment => Owner.
GetEnvironment
();
329
return new NaiveCalibratorEstimator(Owner.
GetEnvironment
(), labelColumnName, scoreColumnName);
349
return new PlattCalibratorEstimator(Owner.
GetEnvironment
(), labelColumnName, scoreColumnName, exampleWeightColumnName);
370
return new FixedPlattCalibratorEstimator(Owner.
GetEnvironment
(), slope, offset, scoreColumnName);
395
return 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) });
104
var env = CatalogUtils.
GetEnvironment
(catalog);
120
=> new TypeConvertingEstimator(CatalogUtils.
GetEnvironment
(catalog), columns);
140
=> new KeyToValueMappingEstimator(CatalogUtils.
GetEnvironment
(catalog), outputColumnName, inputColumnName);
161
var env = CatalogUtils.
GetEnvironment
(catalog);
175
=> new KeyToVectorMappingEstimator(CatalogUtils.
GetEnvironment
(catalog), columns);
195
=> new KeyToVectorMappingEstimator(CatalogUtils.
GetEnvironment
(catalog), outputColumnName, inputColumnName, outputCountVector);
215
var env = CatalogUtils.
GetEnvironment
(catalog);
254
=> new ValueToKeyMappingEstimator(CatalogUtils.
GetEnvironment
(catalog),
289
var env = CatalogUtils.
GetEnvironment
(catalog);
309
=> new ValueToKeyMappingEstimator(CatalogUtils.
GetEnvironment
(catalog), columns, keyData);
342
var lookupMap = DataViewHelper.CreateDataView(catalog.
GetEnvironment
(), keys, values,
346
return new ValueMappingEstimator<TInputType, TOutputType>(catalog.
GetEnvironment
(), lookupMap,
369
var env = CatalogUtils.
GetEnvironment
(catalog);
374
var lookupMap = DataViewHelper.CreateDataView(catalog.
GetEnvironment
(), keys, values,
378
return new ValueMappingEstimator<TInputType, TOutputType>(catalog.
GetEnvironment
(), lookupMap,
403
var env = CatalogUtils.
GetEnvironment
(catalog);
408
var lookupMap = DataViewHelper.CreateDataView(catalog.
GetEnvironment
(), keys, values,
412
return new ValueMappingEstimator<TInputType, TOutputType>(catalog.
GetEnvironment
(), lookupMap,
447
var lookupMap = DataViewHelper.CreateDataView(catalog.
GetEnvironment
(), keys, values,
451
return new ValueMappingEstimator<TInputType, TOutputType>(catalog.
GetEnvironment
(), lookupMap,
473
var env = CatalogUtils.
GetEnvironment
(catalog);
478
var lookupMap = DataViewHelper.CreateDataView(catalog.
GetEnvironment
(), keys, values,
482
return new ValueMappingEstimator<TInputType, TOutputType>(catalog.
GetEnvironment
(), lookupMap,
512
return new ValueMappingEstimator(CatalogUtils.
GetEnvironment
(catalog), lookupMap, keyColumn, valueColumn,
532
var 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);
Transforms\ExtensionsCatalog.cs (5)
75
=> new ColumnCopyingEstimator(CatalogUtils.
GetEnvironment
(catalog), outputColumnName, inputColumnName);
94
var env = CatalogUtils.
GetEnvironment
(catalog);
116
=> new ColumnConcatenatingEstimator(CatalogUtils.
GetEnvironment
(catalog), outputColumnName, inputColumnNames);
133
=> ColumnSelectingEstimator.DropColumns(CatalogUtils.
GetEnvironment
(catalog), columnNames);
153
=> new ColumnSelectingEstimator(CatalogUtils.
GetEnvironment
(catalog),
Transforms\TransformsCatalog.cs (4)
58
_env = owner.
GetEnvironment
();
72
_env = owner.
GetEnvironment
();
86
_env = owner.
GetEnvironment
();
100
_env = owner.
GetEnvironment
();