2 writes to _host
Microsoft.ML.Data (2)
Scorers\MulticlassClassificationScorer.cs (2)
117_host = env.Register(LoaderSignature); 134_host = host;
15 references to _host
Microsoft.ML.Data (15)
Scorers\MulticlassClassificationScorer.cs (15)
118_host.AssertValue(bindable); 119_host.AssertValue(type); 120_host.AssertValue(getter); 121_host.AssertNonEmpty(metadataKind); 122_host.AssertValueOrNull(canWrap); 135_host.AssertValue(ctx); 137ctx.LoadModel<ISchemaBindableMapper, SignatureLoadModel>(_host, out _bindable, _innerDir); 138BinarySaver saver = new BinarySaver(_host, new BinarySaver.Arguments()); 141_host.CheckDecode(saver.TryLoadTypeAndValue(ctx.Reader.BaseStream, out type, out value)); 143_host.CheckDecode(_type != null); 144_host.CheckDecode(value != null); 152_host.CheckDecode(value is VBuffer<T>); 200BinarySaver saver = new BinarySaver(_host, new BinarySaver.Arguments()); 203throw _host.Except("We do not know how to serialize label names of type '{0}'", _type.ItemType); 208return new LabelNameBindableMapper(_host, inner, _type, _getter, _metadataKind, _canWrap);