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)
19IHostEnvironment IInternalCatalog.Environment => _env; 80_env.CheckValue(data, nameof(data)); 81_env.CheckValueOrNull(schemaDefinition); 82return DataViewConstructionUtils.CreateFromEnumerable(_env, data, schemaDefinition); 107_env.CheckValue(data, nameof(data)); 108_env.CheckValue(schema, nameof(schema)); 109return DataViewConstructionUtils.CreateFromEnumerable(_env, data, schema); 132_env.CheckValue(data, nameof(data)); 133_env.CheckValueOrNull(schemaDefinition); 135var 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); 201throw _env.ExceptSchemaMismatch(nameof(columnsToPrefetch), "prefetch", columnsToPrefetch[i]); 203return 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"); 232throw _env.ExceptSchemaMismatch(nameof(columnName), "filter", columnName, "number", type.ToString()); 233return 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"); 266throw _env.ExceptSchemaMismatch(nameof(columnName), "filter", columnName, "KeyType", type.ToString()); 267return new RangeFilter(_env, input, columnName, lowerBound, upperBound, false); 285_env.CheckValue(input, nameof(input)); 286_env.CheckUserArg(Utils.Size(columns) > 0, nameof(columns)); 288return new NAFilter(_env, input, complement: false, columns); 323_env.CheckValue(input, nameof(input)); 324_env.CheckUserArg(shufflePoolSize > 0, nameof(shufflePoolSize), "Must be positive"); 334return new RowShufflingTransformer(_env, options, input); 354_env.CheckValue(input, nameof(input)); 355_env.CheckUserArg(count > 0, nameof(count), "Must be greater than zero."); 362return new SkipTakeFilter(_env, options, input); 382_env.CheckValue(input, nameof(input)); 383_env.CheckUserArg(count > 0, nameof(count), "Must be greater than zero."); 390return 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); 417var splitColumn = CreateSplitColumn(_env, ref data, samplingKeyColumnName, seed, fallbackInEnvSeed: true); 419var trainFilter = new RangeFilter(_env, new RangeFilter.Options() 426var testFilter = new RangeFilter(_env, new RangeFilter.Options() 434var trainDV = ColumnSelectingTransformer.CreateDrop(_env, trainFilter, splitColumn); 435var 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); 463var splitColumn = CreateSplitColumn(_env, ref data, samplingKeyColumnName, seed, fallbackInEnvSeed: true); 465foreach (var split in CrossValidationSplit(_env, data, splitColumn, numberOfFolds))