2 writes to Host
Microsoft.ML.Data (2)
Evaluators\EvaluatorBase.cs (2)
484
Host
= env.Register("PerInstanceRowMapper");
496
Host
= env.Register("PerInstanceRowMapper");
57 references to Host
Microsoft.ML.Data (57)
Evaluators\BinaryClassifierEvaluator.cs (16)
1066
using (var ch =
Host
.Start("Finding Input Columns"))
1092
throw
Host
.ExceptParam(nameof(schema), "Did not find the probability column '{0}'", _probCol);
1098
Host
.CheckDecode(!string.IsNullOrEmpty(_probCol) || _useRaw);
1099
Host
.CheckDecode(FloatUtils.IsFinite(_threshold));
1144
Host
.Assert(_useRaw);
1150
Host
.Assert(LabelIndex >= 0);
1151
Host
.Assert(ScoreIndex >= 0);
1152
Host
.Assert(_probIndex >= 0 || _useRaw);
1260
Host
.AssertNonEmpty(ScoreCol);
1261
Host
.AssertValueOrNull(_probCol);
1262
Host
.AssertNonEmpty(LabelCol);
1266
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "Single, Double, Boolean or a Key with cardinality 2", t.ToString());
1270
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "Single", t.ToString());
1274
Host
.Assert(!string.IsNullOrEmpty(_probCol));
1277
throw
Host
.ExceptSchemaMismatch(nameof(schema), "probability", _probCol, "Single", t.ToString());
1280
throw
Host
.Except("Cannot compute the predicted label from the probability column because it does not exist");
Evaluators\ClusteringEvaluator.cs (4)
612
Host
.CheckDecode(_numClusters > 0);
637
Host
.Assert(_numClusters > 0);
753
Host
.AssertNonEmpty(ScoreCol);
757
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "known-size vector of Single", type.ToString());
Evaluators\EvaluatorBase.cs (5)
489
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol);
491
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol);
505
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol);
507
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol);
545
throw
Host
.ExceptNotSupp();
Evaluators\MulticlassClassificationEvaluator.cs (9)
650
Host
.CheckDecode(_numClasses > 0);
679
Host
.CheckValue(ctx, nameof(ctx));
689
Host
.Assert(_numClasses > 0);
697
Host
.Assert(ScoreIndex >= 0);
698
Host
.Assert(LabelIndex >= 0);
857
Host
.AssertNonEmpty(ScoreCol);
858
Host
.AssertNonEmpty(LabelCol);
862
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "Vector of two or more items of type Single", schema[ScoreIndex].Type.ToString());
865
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "Single or Key", labelType.ToString());
Evaluators\MultiOutputRegressionEvaluator.cs (6)
462
Host
.Assert(LabelIndex >= 0);
463
Host
.Assert(ScoreIndex >= 0);
546
Host
.AssertNonEmpty(ScoreCol);
547
Host
.AssertNonEmpty(LabelCol);
551
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "known-size vector of Single or Double", schema[LabelIndex].Type.ToString());
560
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "known-size vector of Single", schema[ScoreIndex].Type.ToString());
Evaluators\QuantileRegressionEvaluator.cs (11)
287
Host
.CheckParam(scoreSize > 0, nameof(scoreSize), "must be greater than 0");
289
throw
Host
.ExceptParam(nameof(quantiles), "buffer must be dense");
291
throw
Host
.ExceptParam(nameof(quantiles), "buffer must be of length '{0}'", scoreSize);
309
Host
.CheckDecode(_scoreSize > 0);
338
Host
.Assert(_scoreSize > 0);
382
Host
.Assert(LabelIndex >= 0);
383
Host
.Assert(ScoreIndex >= 0);
444
Host
.AssertNonEmpty(ScoreCol);
445
Host
.AssertNonEmpty(LabelCol);
449
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "Single", t.ToString());
454
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "known-size vector of Single or Double", t.ToString());
Evaluators\RegressionEvaluator.cs (6)
271
Host
.Assert(LabelIndex >= 0);
272
Host
.Assert(ScoreIndex >= 0);
325
Host
.AssertNonEmpty(ScoreCol);
326
Host
.AssertNonEmpty(LabelCol);
330
throw
Host
.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "Single", t.ToString());
334
throw
Host
.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "Single", t.ToString());