1 write to _host
Microsoft.ML.Data (1)
DataLoadSave\TransformWrapper.cs (1)
28
_host
= env.Register(nameof(TransformWrapper));
10 references to _host
Microsoft.ML.Data (10)
DataLoadSave\TransformWrapper.cs (10)
29
_host
.CheckValue(xf, nameof(xf));
35
_host
.CheckValue(inputSchema, nameof(inputSchema));
37
var dv = new EmptyDataView(
_host
, inputSchema);
38
var output = ApplyTransformUtils.ApplyTransformToData(
_host
, (IDataTransform)_xf, dv);
43
void ICanSaveModel.Save(ModelSaveContext ctx) => throw
_host
.Except("Saving is not permitted.");
45
public IDataView Transform(IDataView input) => ApplyTransformUtils.ApplyTransformToData(
_host
, (IDataTransform)_xf, input);
51
_host
.CheckValue(inputSchema, nameof(inputSchema));
52
var transform = ApplyTransformUtils.ApplyTransformToData(
_host
, (IDataTransform)_xf, new EmptyDataView(
_host
, inputSchema)) as IRowToRowMapper;
53
_host
.Check(transform is IRowToRowMapper);