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);
137
ctx.LoadModel<ISchemaBindableMapper, SignatureLoadModel>(
_host
, out _bindable, _innerDir);
138
BinarySaver 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>);
200
BinarySaver saver = new BinarySaver(
_host
, new BinarySaver.Arguments());
203
throw
_host
.Except("We do not know how to serialize label names of type '{0}'", _type.ItemType);
208
return new LabelNameBindableMapper(
_host
, inner, _type, _getter, _metadataKind, _canWrap);