1 write to _host
Microsoft.ML.Data (1)
Transforms\ColumnSelecting.cs (1)
227
_host
= Contracts.CheckRef(env, nameof(env)).Register(nameof(ColumnSelectingTransformer));
14 references to _host
Microsoft.ML.Data (14)
Transforms\ColumnSelecting.cs (14)
228
_host
.CheckValueOrNull(keepColumns);
229
_host
.CheckValueOrNull(dropColumns);
235
_host
.Check(!(keepValid && dropValid), "Both " + nameof(keepColumns) + " and " + nameof(dropColumns) + " are set. Exactly one can be specified.");
237
_host
.Check(!(!keepValid && !dropValid), "Neither " + nameof(keepColumns) + " and " + nameof(dropColumns) + " is set. Exactly one must be specified.");
474
_host
.CheckValue(inputSchema, nameof(inputSchema));
478
throw
_host
.ExceptSchemaMismatch(nameof(inputSchema), "input", string.Join(",", invalidColumns));
493
_host
.CheckValue(inputSchema, nameof(inputSchema));
497
throw
_host
.ExceptSchemaMismatch(nameof(inputSchema), "input", string.Join(",", invalidColumns));
500
return new SelectColumnsDataTransform(
_host
, this,
502
new EmptyDataView(
_host
, inputSchema));
511
_host
.CheckValue(input, nameof(input));
515
throw
_host
.ExceptSchemaMismatch(nameof(input), "input", string.Join(",", invalidColumns));
518
return new SelectColumnsDataTransform(
_host
, this, new Mapper(this, input.Schema), input);
533
_host = transform.
_host
.Register(nameof(Mapper));