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)
710using (var ch = parent._host.Start("Binding")) 1154_host.CheckValue(options, nameof(options)); 1155_host.CheckValueOrNull(dataSample); 1166if (Utils.Size(cols) == 0 && !TryParseSchema(_host, headerFile ?? dataSample, ref options, out cols, out error)) 1169throw _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"); 1244throw _host.ExceptUserArg(nameof(Options.DecimalMarker), "Decimal marker cannot be the '{0}' character. It must be '.' or ','.", options.DecimalMarker); 1246throw _host.ExceptUserArg(nameof(Options.AllowQuoting), "Quoting must be allowed if decimal marker and separator are the ',' character."); 1250throw _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), 1283throw _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) 151var stats = new ParseStats(parent._host, 1); 168var stats = new ParseStats(parent._host, cthd);
DataLoadSave\Text\TextLoaderParser.cs (2)
741var stats = new ParseStats(parent._host, cref: 1, maxShow: 0); 777var stats = new ParseStats(parent._host, cref: 1, maxShow: 0);