1 write to _env
Microsoft.ML.Data (1)
DataLoadSave\DataOperationsCatalog.cs (1)
50
_env
= env;
53 references to _env
Microsoft.ML.Data (53)
DataLoadSave\DataOperationsCatalog.cs (53)
19
IHostEnvironment IInternalCatalog.Environment =>
_env
;
80
_env
.CheckValue(data, nameof(data));
81
_env
.CheckValueOrNull(schemaDefinition);
82
return DataViewConstructionUtils.CreateFromEnumerable(
_env
, data, schemaDefinition);
107
_env
.CheckValue(data, nameof(data));
108
_env
.CheckValue(schema, nameof(schema));
109
return DataViewConstructionUtils.CreateFromEnumerable(
_env
, data, schema);
132
_env
.CheckValue(data, nameof(data));
133
_env
.CheckValueOrNull(schemaDefinition);
135
var engine = new PipeEngine<TRow>(
_env
, data, ignoreMissingColumns, schemaDefinition);
164
_env
.CheckValue(input, nameof(input));
166
_env
,
194
_env
.CheckValue(input, nameof(input));
195
_env
.CheckValueOrNull(columnsToPrefetch);
201
throw
_env
.ExceptSchemaMismatch(nameof(columnsToPrefetch), "prefetch", columnsToPrefetch[i]);
203
return new CacheDataView(
_env
, input, prefetch);
226
_env
.CheckValue(input, nameof(input));
227
_env
.CheckNonEmpty(columnName, nameof(columnName));
228
_env
.CheckParam(lowerBound < upperBound, nameof(upperBound), "Must be less than lowerBound");
232
throw
_env
.ExceptSchemaMismatch(nameof(columnName), "filter", columnName, "number", type.ToString());
233
return new RangeFilter(
_env
, input, columnName, lowerBound, upperBound, false);
258
_env
.CheckValue(input, nameof(input));
259
_env
.CheckNonEmpty(columnName, nameof(columnName));
260
_env
.CheckParam(0 <= lowerBound && lowerBound <= 1, nameof(lowerBound), "Must be in [0, 1]");
261
_env
.CheckParam(0 <= upperBound && upperBound <= 1, nameof(upperBound), "Must be in [0, 1]");
262
_env
.CheckParam(lowerBound <= upperBound, nameof(upperBound), "Must be no less than lowerBound");
266
throw
_env
.ExceptSchemaMismatch(nameof(columnName), "filter", columnName, "KeyType", type.ToString());
267
return new RangeFilter(
_env
, input, columnName, lowerBound, upperBound, false);
285
_env
.CheckValue(input, nameof(input));
286
_env
.CheckUserArg(Utils.Size(columns) > 0, nameof(columns));
288
return new NAFilter(
_env
, input, complement: false, columns);
323
_env
.CheckValue(input, nameof(input));
324
_env
.CheckUserArg(shufflePoolSize > 0, nameof(shufflePoolSize), "Must be positive");
334
return new RowShufflingTransformer(
_env
, options, input);
354
_env
.CheckValue(input, nameof(input));
355
_env
.CheckUserArg(count > 0, nameof(count), "Must be greater than zero.");
362
return new SkipTakeFilter(
_env
, options, input);
382
_env
.CheckValue(input, nameof(input));
383
_env
.CheckUserArg(count > 0, nameof(count), "Must be greater than zero.");
390
return new SkipTakeFilter(
_env
, options, input);
413
_env
.CheckValue(data, nameof(data));
414
_env
.CheckParam(0 < testFraction && testFraction < 1, nameof(testFraction), "Must be between 0 and 1 exclusive");
415
_env
.CheckValueOrNull(samplingKeyColumnName);
417
var splitColumn = CreateSplitColumn(
_env
, ref data, samplingKeyColumnName, seed, fallbackInEnvSeed: true);
419
var trainFilter = new RangeFilter(
_env
, new RangeFilter.Options()
426
var testFilter = new RangeFilter(
_env
, new RangeFilter.Options()
434
var trainDV = ColumnSelectingTransformer.CreateDrop(
_env
, trainFilter, splitColumn);
435
var testDV = ColumnSelectingTransformer.CreateDrop(
_env
, testFilter, splitColumn);
460
_env
.CheckValue(data, nameof(data));
461
_env
.CheckParam(numberOfFolds > 1, nameof(numberOfFolds), "Must be more than 1");
462
_env
.CheckValueOrNull(samplingKeyColumnName);
463
var splitColumn = CreateSplitColumn(
_env
, ref data, samplingKeyColumnName, seed, fallbackInEnvSeed: true);
465
foreach (var split in CrossValidationSplit(
_env
, data, splitColumn, numberOfFolds))