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