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)); 952throw _host.Except("Column '{0}': TermTransform expects {1} slots, but got {2}", info.Name, cv, cval); 987throw _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); 1060builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TextDataViewType.Instance, getter); 1069builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TypedMap.ItemType, getter); 1089_host.Assert(TypedMap.ItemType is KeyDataViewType); 1099if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(_host) || 1100TypedMap.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)); 1132var editor = VBufferEditor.Create(ref dst, TypedMap.OutputType.GetCountAsInt32(_host)); 1139_host.Assert(0 < convKeyVal && convKeyVal <= srcMeta.Length); 1145int keyCount = TypedMap.OutputType.GetCountAsInt32(_host); 1156_host.Assert(dst.Length == keyCount); 1166_host.Assert(dst.Length == keyCount); 1180if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(_host) || 1181TypedMap.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); 1205if (srcMeta.Length != srcType.GetCountAsInt32(_host)) 1223_host.Assert(0 < convKeyVal && convKeyVal <= srcMeta.Length);