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"); 162var ivec = FindVectorInputColumn(_host, _columns[i].InputColumnNames, input.Schema, inputTypes); 163var node = ParseAndBindLambda(_host, _columns[i].Expression, ivec, inputTypes, out var perm); 164columns[i] = new ExpressionTransformer.ColumnInfo(_host, _columns[i].InputColumnNames, inputTypes, _columns[i].Expression, _columns[i].Name, ivec, node, perm); 166return new ExpressionTransformer(_host, columns); 171_host.CheckValue(inputSchema, nameof(inputSchema)); 178throw _host.ExceptSchemaMismatch(nameof(inputSchema), "input", _columns[i].InputColumnNames[j]); 183var ivec = FindVectorInputColumn(_host, _columns[i].InputColumnNames, inputSchema, inputTypes); 184var node = ParseAndBindLambda(_host, _columns[i].Expression, ivec, inputTypes, out var perm); 187_host.Assert(typeRes is PrimitiveDataViewType); 201_host.Assert(b);