1 write to _host
Microsoft.ML.Transforms (1)
ExpressionTransformer.cs (1)
77
_host
= env.Register(nameof(ExpressionEstimator));
15 references to _host
Microsoft.ML.Transforms (15)
ExpressionTransformer.cs (15)
78
_host
.CheckNonEmpty(columns, nameof(columns));
79
_host
.Check(columns.All(col => !string.IsNullOrWhiteSpace(col.Expression)));
80
_host
.Check(columns.All(col => !string.IsNullOrWhiteSpace(col.Name)));
81
_host
.Check(columns.All(col => Utils.Size(col.InputColumnNames) > 0));
82
_host
.CheckParam(columns.All(col => Utils.Size(col.InputColumnNames) <= 5), nameof(ColumnOptions.InputColumnNames), "maximum number of inputs exceeded");
162
var ivec = FindVectorInputColumn(
_host
, _columns[i].InputColumnNames, input.Schema, inputTypes);
163
var node = ParseAndBindLambda(
_host
, _columns[i].Expression, ivec, inputTypes, out var perm);
164
columns[i] = new ExpressionTransformer.ColumnInfo(
_host
, _columns[i].InputColumnNames, inputTypes, _columns[i].Expression, _columns[i].Name, ivec, node, perm);
166
return new ExpressionTransformer(
_host
, columns);
171
_host
.CheckValue(inputSchema, nameof(inputSchema));
178
throw
_host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _columns[i].InputColumnNames[j]);
183
var ivec = FindVectorInputColumn(
_host
, _columns[i].InputColumnNames, inputSchema, inputTypes);
184
var node = ParseAndBindLambda(
_host
, _columns[i].Expression, ivec, inputTypes, out var perm);
187
_host
.Assert(typeRes is PrimitiveDataViewType);
201
_host
.Assert(b);