1 write to Host
Microsoft.ML.Data (1)
DataLoadSave\TrivialEstimator.cs (1)
29Host = host;
24 references to Host
Microsoft.ML.Data (24)
DataLoadSave\TrivialEstimator.cs (2)
30Host.CheckValue(transformer, nameof(transformer)); 36Host.CheckValue(input, nameof(input));
Transforms\ColumnCopying.cs (2)
74Host.CheckValue(inputSchema, nameof(inputSchema)); 80throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", inputColumnName);
Transforms\ColumnSelecting.cs (2)
134Host.CheckValue(inputSchema, nameof(inputSchema)); 139throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", string.Join(",", invalidColumns));
Transforms\FeatureContributionCalculationTransformer.cs (3)
341Host.CheckValue(inputSchema, nameof(inputSchema)); 343throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _featureColumn); 346throw Host.ExceptSchemaMismatch(nameof(inputSchema), "column", _featureColumn, "known-size vector of Single", col.GetTypeString());
Transforms\KeyToValue.cs (4)
636Host.CheckValue(inputSchema, nameof(inputSchema)); 641throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.inputColumnName); 643throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.inputColumnName, "KeyType", col.GetTypeString()); 646throw Host.ExceptParam(nameof(inputSchema), $"Input column '{colInfo.inputColumnName}' doesn't contain key values metadata");
Transforms\KeyToVector.cs (3)
820Host.CheckValue(inputSchema, nameof(inputSchema)); 825throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.InputColumnName); 827throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.InputColumnName);
Transforms\TypeConverting.cs (5)
624Host.CheckValue(inputSchema, nameof(inputSchema)); 629throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.InputColumnName); 630if (!TypeConvertingTransformer.GetNewType(Host, col.ItemType, colInfo.OutputKind.ToInternalDataKind(), colInfo.OutputKeyCount, out PrimitiveDataViewType newType)) 631throw Host.ExceptParam(nameof(inputSchema), $"Can't convert {colInfo.InputColumnName} into {newType.ToString()}"); 633throw Host.ExceptParam(nameof(inputSchema), $"Don't know how to convert {colInfo.InputColumnName} into {newType.ToString()}");
Transforms\ValueMapping.cs (3)
91Host.CheckValue(inputSchema, nameof(inputSchema)); 115throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", inputColumnName); 121throw Host.ExceptNotSupp("Column '{0}' cannot be mapped to values when the column and the map values are both vector type.", inputColumnName);