1 write to Host
Microsoft.ML.Data (1)
Evaluators\EvaluatorBase.cs (1)
251
Host
= env.Register("Aggregator");
73 references to Host
Microsoft.ML.Data (73)
Evaluators\AnomalyDetectionEvaluator.cs (10)
452
Host
.Assert(topK > 0);
453
Host
.Assert(nameIndex == -1 || nameIndex >= 0);
454
Host
.Assert(k > 0);
466
_aucAggregator = new UnweightedAucAggregator(
Host
.Rand, reservoirSize);
480
Host
.Assert(!_streaming && PassNum < 2 || PassNum < 1);
504
Host
.Assert(!_streaming && PassNum < 2 || PassNum < 1);
505
Host
.Assert(schema.Label.HasValue);
511
Host
.AssertValue(_labelGetter);
512
Host
.AssertValue(_scoreGetter);
516
Host
.Assert(_topExamples.Count == 0);
Evaluators\BinaryClassifierEvaluator.cs (25)
574
Host
.Assert(Utils.Size(classNames) == 2);
575
Host
.Assert(aucReservoirSize >= -1);
576
Host
.Assert(prCount >= 0);
577
Host
.Assert(auPrcReservoirSize >= 0);
578
Host
.Assert(useRaw || 0 <= threshold && threshold <= 1);
586
_aucAggregator = new WeightedAucAggregator(
Host
.Rand, aucReservoirSize);
588
AuPrcAggregator = new WeightedAuPrcAggregator(
Host
.Rand, auPrcReservoirSize);
592
_aucAggregator = new UnweightedAucAggregator(
Host
.Rand, aucReservoirSize);
594
AuPrcAggregator = new UnweightedAuPrcAggregator(
Host
.Rand, auPrcReservoirSize);
606
_prCurveReservoir = new ReservoirSamplerWithoutReplacement<RocInfo>(
Host
.Rand, prCount, prSampleGetter);
622
Host
.Assert(schema.Label.HasValue);
623
Host
.Assert(PassNum < 1);
629
Host
.AssertValue(_labelGetter);
630
Host
.AssertValue(_scoreGetter);
633
Host
.Assert(prob == null || prob.Count == 1);
640
Host
.Assert((schema.Weight != null) == Weighted);
679
Host
.Assert((_weightGetter != null) == Weighted);
719
Host
.AssertValue(_prCurveReservoir);
720
Host
.AssertValue(Scores);
721
Host
.AssertValue(Precision);
722
Host
.AssertValue(Recall);
723
Host
.AssertValue(FalsePositiveRate);
733
Host
.AssertValue(WeightedPrecision);
734
Host
.AssertValue(WeightedRecall);
735
Host
.AssertValue(WeightedFalsePositiveRate);
Evaluators\ClusteringEvaluator.cs (17)
410
Host
.Assert(features.HasValue);
430
throw
Host
.Except("Invalid label: {0}", label);
433
Host
.Check(_scores.Length == _scoresArr.Length);
473
Host
.Check(_scores.Length == _scoresArr.Length);
491
Host
.AssertValue(row);
492
Host
.AssertValue(schema);
496
Host
.Assert(schema.Feature.HasValue);
500
Host
.Assert(score.Type.GetVectorSize() == _scoresArr.Length);
514
Host
.Assert(PassNum == 1 && _calculateDbi);
543
Host
.Assert(IsActive());
548
Host
.AssertValue(_labelGetter);
549
Host
.AssertValue(_scoreGetter);
550
Host
.AssertValueOrNull(_weightGetter);
551
Host
.Assert(!_calculateDbi || _featGetter != null);
555
Host
.Assert(PassNum == 1 && _calculateDbi);
556
Host
.AssertValue(_featGetter);
557
Host
.AssertValue(_scoreGetter);
Evaluators\EvaluatorBase.cs (3)
252
Host
.AssertValueOrNull(stratName);
260
Host
.Check(PassNum == -1, "Start() should only be called before processing any data.");
296
Host
.Assert(PassNum < 1);
Evaluators\MulticlassClassificationEvaluator.cs (9)
400
Host
.Assert(outputTopKAcc == null || outputTopKAcc > 0);
401
Host
.Assert(scoreVectorSize > 0);
402
Host
.Assert(Utils.Size(classNames) == scoreVectorSize);
414
Host
.Assert(PassNum < 1);
415
Host
.Assert(schema.Label.HasValue);
418
Host
.Assert(score.Type.GetVectorSize() == _scoresArr.Length);
421
Host
.AssertValue(_labelGetter);
422
Host
.AssertValue(_scoreGetter);
445
Host
.Check(_scores.Length == _scoresArr.Length);
Evaluators\MultiOutputRegressionEvaluator.cs (2)
291
Host
.AssertValue(lossFunction);
292
Host
.Assert(size > 0);
Evaluators\QuantileRegressionEvaluator.cs (3)
223
Host
.Assert(size > 0);
224
Host
.Assert(slotNames.Length == 0 || slotNames.Length == size);
247
Host
.AssertValue(dvBldr);
Evaluators\RankingEvaluator.cs (2)
439
Host
.AssertValue(labelGains);
440
Host
.Assert(truncationLevel > 0);
Evaluators\RegressionEvaluator.cs (1)
162
Host
.AssertValue(dvBldr);
Evaluators\RegressionEvaluatorBase.cs (1)
195
Host
.AssertValue(lossFunction);