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