2 writes to _host
Microsoft.ML.Data (2)
DataLoadSave\Text\TextLoader.cs (2)
1153
_host
= env.Register(RegistrationName);
1403
_host
= host;
25 references to _host
Microsoft.ML.Data (25)
DataLoadSave\Text\TextLoader.cs (20)
710
using (var ch = parent.
_host
.Start("Binding"))
1154
_host
.CheckValue(options, nameof(options));
1155
_host
.CheckValueOrNull(dataSample);
1166
if (Utils.Size(cols) == 0 && !TryParseSchema(
_host
, headerFile ?? dataSample, ref options, out cols, out error))
1169
throw
_host
.Except("TextLoader options embedded in the file are invalid");
1175
_host
.AssertValue(cols[0]);
1177
_host
.AssertValue(cols[1]);
1179
_host
.Assert(Utils.Size(cols) > 0);
1198
_host
.CheckUserArg(_maxRows >= 0, nameof(options.MaxRows));
1202
_host
.Check(_inputSize >= 0, "inputSize");
1206
_host
.CheckNonEmpty(options.Separator, nameof(options.Separator), "Must specify a separator");
1244
throw
_host
.ExceptUserArg(nameof(Options.DecimalMarker), "Decimal marker cannot be the '{0}' character. It must be '.' or ','.", options.DecimalMarker);
1246
throw
_host
.ExceptUserArg(nameof(Options.AllowQuoting), "Quoting must be allowed if decimal marker and separator are the ',' character.");
1250
throw
_host
.ExceptUserArg(nameof(Options.EscapeChar), "EscapeChar '{0}' can't be used both as EscapeChar and separator", _escapeChar);
1271
_host
.CheckUserArg((_flags & OptionFlags.AllowSparse) == 0, nameof(Options.Separator),
1283
throw
_host
.ExceptUserArg(nameof(Options.Separator), "Illegal separator: '{0}'", sep);
1502
_host
.CheckValue(ctx, nameof(ctx));
1518
_host
.Assert((_flags & ~OptionFlags.All) == 0);
1520
_host
.Assert(0 <= _inputSize && _inputSize < SrcLim);
1646
_host = loader.
_host
.Register(nameof(BoundLoader));
DataLoadSave\Text\TextLoaderCursor.cs (3)
87
: base(parent.
_host
)
151
var stats = new ParseStats(parent.
_host
, 1);
168
var stats = new ParseStats(parent.
_host
, cthd);
DataLoadSave\Text\TextLoaderParser.cs (2)
741
var stats = new ParseStats(parent.
_host
, cref: 1, maxShow: 0);
777
var stats = new ParseStats(parent.
_host
, cref: 1, maxShow: 0);