1 write to _host
Microsoft.ML.Transforms (1)
CustomMappingTransformer.cs (1)
48
_host
= env.Register(nameof(CustomMappingTransformer<TSrc, TDst>));
13 references to _host
Microsoft.ML.Transforms (13)
CustomMappingTransformer.cs (13)
49
_host
.CheckValue(mapAction, nameof(mapAction));
50
_host
.CheckValueOrNull(contractName);
51
_host
.CheckValueOrNull(inputSchemaDefinition);
52
_host
.CheckValueOrNull(outputSchemaDefinition);
71
throw
_host
.Except("Empty contract name for a transform: the transform cannot be saved");
72
LambdaTransform.SaveCustomTransformer(
_host
, ctx, _contractName, _contractAssembly);
81
_host
.CheckValue(inputSchema, nameof(inputSchema));
92
_host
.CheckValue(input, nameof(input));
93
return new RowToRowMapperTransform(
_host
, input, MakeRowMapper(input.Schema), MakeRowMapper);
103
_host
.CheckValue(inputSchema, nameof(inputSchema));
105
return new RowToRowMapperTransform(
_host
, new EmptyDataView(
_host
, inputSchema), simplerMapper, MakeRowMapper);
122
_host = parent.
_host
.Register(nameof(Mapper));