1 write to Host
Microsoft.ML.Data (1)
DataView\DataViewConstructionUtils.cs (1)
218
Host
= env.Register("Row");
30 references to Host
Microsoft.ML.Data (30)
DataView\DataViewConstructionUtils.cs (30)
168
Host
.CheckValue(row, nameof(row));
182
Host
.Check(Position >= 0, RowCursorUtils.FetchValueStateError);
219
Host
.AssertValue(schema);
220
Host
.AssertValue(schemaDef);
221
Host
.AssertValue(peeks);
222
Host
.AssertValue(predicate);
223
Host
.Assert(schema.Count == schemaDef.Columns.Length);
224
Host
.Assert(schema.Count == peeks.Length);
243
Host
.Assert(vectorType != null);
248
Host
.Assert(vectorType.ItemType is TextDataViewType);
254
Host
.Assert(Nullable.GetUnderlyingType(outputType.GetElementType()) == vectorType.ItemType.RawType);
256
Host
.Assert(outputType.GetElementType() == vectorType.ItemType.RawType);
264
Host
.Assert(outputType.IsGenericType);
265
Host
.Assert(outputType.GetGenericTypeDefinition() == typeof(VBuffer<>));
266
Host
.Assert(outputType.GetGenericArguments()[0] == vectorType.ItemType.RawType);
275
Host
.Assert(colType is TextDataViewType);
281
Host
.Assert(colType.RawType == Nullable.GetUnderlyingType(outputType));
283
Host
.Assert(colType.RawType == outputType);
300
throw
Host
.ExceptNotSupp("Type '{0}' is not yet supported.", outputType.FullName);
311
Host
.AssertValue(peek);
327
Host
.AssertValue(peek);
339
Host
.AssertValue(peek);
355
Host
.AssertValue(peek);
370
Host
.AssertValue(peek);
379
Host
.Check(keyType != null);
381
Host
.Check(typeof(TDst) == typeof(ulong) || typeof(TDst) == typeof(uint) ||
386
Host
.AssertValue(peek);
419
throw
Host
.Except("Column index must be between 0 and {0}", _colCount);
431
Host
.CheckParam(column.Index <= _getters.Length && IsColumnActive(column), nameof(column), "requested column not active");
437
throw
Host
.Except($"Invalid TValue in GetGetter for column #{column}: '{typeof(TValue)}', " +