2 writes to Host
Microsoft.ML.Ensemble (2)
OutputCombiners\BaseMultiCombiner.cs (2)
31Host = env.Register(name); 41Host = env.Register(name);
15 references to Host
Microsoft.ML.Ensemble (15)
OutputCombiners\BaseMultiAverager.cs (2)
27Host.AssertNonEmpty(src); 28Host.Assert(weights == null || Utils.Size(weights) == Utils.Size(src));
OutputCombiners\BaseMultiCombiner.cs (4)
32Host.CheckValue(options, nameof(options)); 42Host.AssertValue(ctx); 48Host.CheckDecode(cbFloat == sizeof(Single)); 54Host.CheckValue(ctx, nameof(ctx));
OutputCombiners\MultiMedian.cs (2)
74Host.AssertNonEmpty(src); 75Host.Assert(weights == null || Utils.Size(weights) == Utils.Size(src));
OutputCombiners\MultiVoting.cs (4)
43Host.Assert(!Normalize); 49Host.CheckDecode(!Normalize); 74Host.AssertNonEmpty(src); 75Host.Assert(weights == null || Utils.Size(weights) == Utils.Size(src));
OutputCombiners\MultiWeightedAverage.cs (3)
59Host.CheckUserArg(Enum.IsDefined(typeof(MultiWeightageKind), _weightageKind), nameof(options.WeightageName)); 69Host.CheckDecode(Enum.IsDefined(typeof(MultiWeightageKind), _weightageKind)); 87Host.Assert(Enum.IsDefined(typeof(MultiWeightageKind), _weightageKind));