3 writes to Host
Microsoft.ML.Data (3)
Scorers\PredictionTransformer.cs (3)
84
Host
= host;
97
Host
= host;
111
Host
= host;
45 references to Host
Microsoft.ML.Data (45)
Scorers\PredictionTransformer.cs (45)
86
Host
.CheckValue(model, nameof(model));
87
Host
.CheckParam(model is IPredictor, nameof(model));
90
Host
.CheckValue(trainSchema, nameof(trainSchema));
148
Host
.CheckValue(input, nameof(input));
149
return Scorer.ApplyToData(
Host
, input);
159
Host
.CheckValue(inputSchema, nameof(inputSchema));
160
return (IRowToRowMapper)Scorer.ApplyToData(
Host
, new EmptyDataView(
Host
, inputSchema));
177
using (var ch =
Host
.Start("Saving train schema"))
179
var saver = new BinarySaver(
Host
, new BinarySaver.Arguments { Silent = true });
180
DataSaverUtils.SaveDataView(ch, saver, new EmptyDataView(
Host
, TrainSchema), writer.BaseStream);
234
throw
Host
.ExceptSchemaMismatch(nameof(featureColumn), "feature", featureColumn);
238
BindableMapper = ScoreUtils.GetSchemaBindableMapper(
Host
, ModelAsPredictor);
249
throw
Host
.ExceptSchemaMismatch(nameof(FeatureColumnName), "feature", FeatureColumnName);
253
BindableMapper = ScoreUtils.GetSchemaBindableMapper(
Host
, ModelAsPredictor);
264
throw
Host
.ExceptSchemaMismatch(nameof(FeatureColumnName), "feature", FeatureColumnName);
268
BindableMapper = ScoreUtils.GetSchemaBindableMapper(
Host
, ModelAsPredictor);
278
Host
.CheckValue(inputSchema, nameof(inputSchema));
283
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "feature", FeatureColumnName);
285
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "feature", FeatureColumnName, FeatureColumnType.ToString(), inputSchema[col].Type.ToString());
288
return Transform(new EmptyDataView(
Host
, inputSchema)).Schema;
293
Host
.CheckValue(ctx, nameof(ctx));
307
return new GenericScorer(
Host
, new GenericScorer.Arguments(), new EmptyDataView(
Host
, TrainSchema), BindableMapper.Bind(
Host
, schema), schema);
326
Host
.CheckNonEmpty(thresholdColumn, nameof(thresholdColumn));
350
Scorer = new BinaryClassifierScorer(
Host
, args, new EmptyDataView(
Host
, TrainSchema), BindableMapper.Bind(
Host
, schema), schema);
396
Host
.CheckNonEmpty(thresholdColumn, nameof(thresholdColumn));
407
Host
.CheckNonEmpty(thresholdColumn, nameof(thresholdColumn));
442
Scorer = new BinaryClassifierScorer(
Host
, args, new EmptyDataView(
Host
, TrainSchema), BindableMapper.Bind(
Host
, schema), schema);
488
Host
.CheckValueOrNull(labelColumn);
534
Scorer = new MulticlassClassificationScorer(
Host
, args, new EmptyDataView(
Host
, TrainSchema), BindableMapper.Bind(
Host
, schema), schema);
673
Host
.CheckNonEmpty(thresholdColumn, nameof(thresholdColumn));
677
Scorer = new ClusteringScorer(
Host
, args, new EmptyDataView(
Host
, inputSchema), BindableMapper.Bind(
Host
, schema), schema);
688
Scorer = new ClusteringScorer(
Host
, args, new EmptyDataView(
Host
, TrainSchema), BindableMapper.Bind(
Host
, schema), schema);