2 writes to _host
Microsoft.ML.Transforms (2)
Dracula\Featurizer.cs (2)
48
_host
= env.Register(RegistrationName);
66
_host
= env.Register(RegistrationName);
15 references to _host
Microsoft.ML.Transforms (15)
Dracula\Featurizer.cs (15)
49
_host
.CheckParam(labelBinCount > 1, nameof(labelBinCount), "Must be greater than 1");
59
_host
.AssertValue(countTable);
67
_host
.CheckValue(ctx, nameof(ctx));
79
_host
.CheckDecode(_labelBinCount > 1);
83
_host
.CheckDecode(NumFeatures == _labelBinCount + _logOddsCount + 1);
86
ctx.LoadModelOrNull<MultiCountTableBase, SignatureLoadModel>(
_host
, out _countTables, "CountTables");
87
_host
.AssertValue(_countTables);
90
_host
.CheckDecode(PriorCoef.All(x => x > 0));
93
_host
.CheckDecode(LaplaceScale.All(x => x >= 0));
140
_host
.Assert(features.Length == NumFeatures);
163
_host
.Assert(FloatUtils.IsFinite(features));
173
_host
.Assert(_labelBinCount == counts.Length);
194
_host
.Assert(counts.Length == _labelBinCount);
195
_host
.Assert(logOdds.Length == _logOddsCount);
199
_host
.Assert(counts[i] >= 0);