1 write to _host
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
821
_host
= env;
32 references to _host
Microsoft.ML.Data (32)
Transforms\ValueToKeyMappingTransformerImpl.cs (32)
826
_host
.AssertValue(map);
827
_host
.Assert(0 <= iinfo && iinfo < infos.Length);
829
_host
.Assert(info.TypeSrc.GetItemType().Equals(map.ItemType));
912
_host
.Assert(input.IsColumnActive(inputColumn));
933
_host
.Assert(input.IsColumnActive(inputColumn));
952
throw
_host
.Except("Column '{0}': TermTransform expects {1} slots, but got {2}", info.Name, cv, cval);
987
throw
_host
.Except("Column '{0}': TermTransform expects {1} slots, but got {2}", info.Name, cv, cval);
1021
_host
.Assert(islot < values.Length);
1029
_host
.Assert(slot < nextExplicitSlot);
1060
builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(
_host
), TextDataViewType.Instance, getter);
1069
builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(
_host
), TypedMap.ItemType, getter);
1089
_host
.Assert(TypedMap.ItemType is KeyDataViewType);
1099
if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(
_host
) ||
1100
TypedMap.ItemType.GetKeyCountAsInt32(
_host
) == 0 || !Utils.MarshalInvoke(_addMetadataCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, builder))
1109
_host
.AssertValue(srcMetaType);
1110
_host
.Assert(srcMetaType.RawType == typeof(TMeta));
1111
_host
.AssertValue(builder);
1113
_host
.AssertValue(srcType);
1128
_host
.Assert(srcMeta.Length == srcType.GetCountAsInt32(
_host
));
1132
var editor = VBufferEditor.Create(ref dst, TypedMap.OutputType.GetCountAsInt32(
_host
));
1139
_host
.Assert(0 < convKeyVal && convKeyVal <= srcMeta.Length);
1145
int keyCount = TypedMap.OutputType.GetCountAsInt32(
_host
);
1156
_host
.Assert(dst.Length == keyCount);
1166
_host
.Assert(dst.Length == keyCount);
1180
if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(
_host
) ||
1181
TypedMap.ItemType.GetKeyCountAsInt32(
_host
) == 0 || !Utils.MarshalInvoke(_writeTextTermsCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, writer))
1190
_host
.AssertValue(srcMetaType);
1191
_host
.Assert(srcMetaType.RawType == typeof(TMeta));
1193
_host
.AssertValue(srcType);
1205
if (srcMeta.Length != srcType.GetCountAsInt32(
_host
))
1223
_host
.Assert(0 < convKeyVal && convKeyVal <= srcMeta.Length);