1 write to _host
Microsoft.ML.Data (1)
DataView\ArrayDataViewBuilder.cs (1)
39
_host
= env.Register("ArrayDataViewBuilder");
19 references to _host
Microsoft.ML.Data (19)
DataView\ArrayDataViewBuilder.cs (19)
53
_host
.CheckValue(name, nameof(name));
54
_host
.CheckValue(values, nameof(values));
56
throw
_host
.Except("Previous inputs were of length {0}, but new input is of length {1}", _columns[0].Length, values.Length);
69
_host
.CheckParam(type != null && type.RawType == typeof(T), nameof(type));
85
_host
.CheckValue(getKeyValues, nameof(getKeyValues));
86
_host
.CheckParam(keyCount > 0, nameof(keyCount));
99
_host
.CheckValue(getNames, nameof(getNames));
100
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
113
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
124
_host
.CheckValue(getNames, nameof(getNames));
125
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
138
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
149
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
160
_host
.CheckValue(getNames, nameof(getNames));
161
_host
.CheckParam(itemType != null && itemType.RawType == typeof(T), nameof(itemType));
188
_host
.Check(!RowCount.HasValue || RowCount.Value == rowCount.Value, "Specified row count incompatible with existing columns");
189
return new DataView(
_host
, this, rowCount.Value);
191
_host
.Check(_columns.Count > 0, "Cannot construct data-view with neither any columns nor a specified row count");
192
return new DataView(
_host
, this, RowCount.Value);