1 write to _valueMap
Microsoft.ML.Data (1)
Transforms\ValueMapping.cs (1)
1043
_valueMap
= valueMap;
25 references to _valueMap
Microsoft.ML.Data (25)
Transforms\ValueMapping.cs (25)
1054
return
_valueMap
.GetGetter(input, ColMapNewToOld[iinfo]);
1093
node.AddAttribute("keys_strings", Array.ConvertAll(
_valueMap
.GetKeys<T>(), item => Convert.ToString(item)));
1095
node.AddAttribute("keys_floats", Array.ConvertAll(
_valueMap
.GetKeys<T>(), item => Convert.ToSingle(item)));
1097
node.AddAttribute("keys_int64s", Array.ConvertAll(
_valueMap
.GetKeys<T>(), item => Convert.ToInt64(item)));
1109
var typeValue =
_valueMap
.ValueColumn.Type;
1110
var typeKey =
_valueMap
.KeyColumn.Type;
1111
var kind =
_valueMap
.ValueColumn.Type.GetRawKind();
1131
node.AddAttribute("keys_int64s",
_valueMap
.GetKeys<Int64>());
1179
node.AddAttribute("keys_floats",
_valueMap
.GetKeys<float>());
1194
node.AddAttribute("keys_strings",
_valueMap
.GetKeys<ReadOnlyMemory<char>>());
1205
var values = Array.ConvertAll(
_valueMap
.GetKeys<bool>(), item => Convert.ToString(Convert.ToByte(item)));
1216
node.AddAttribute("values_int64s",
_valueMap
.GetValues<long>());
1220
node.AddAttribute("values_int64s",
_valueMap
.GetValues<int>().Select(item => Convert.ToInt64(item)));
1226
node.AddAttribute("values_int64s",
_valueMap
.GetValues<short>().Select(item => Convert.ToInt64(item)));
1232
node.AddAttribute("values_int64s",
_valueMap
.GetValues<ulong>().Select(item => Convert.ToInt64(item)));
1238
node.AddAttribute("values_int64s",
_valueMap
.GetValues<uint>().Select(item => Convert.ToInt64(item)));
1244
node.AddAttribute("values_int64s",
_valueMap
.GetValues<ushort>().Select(item => Convert.ToInt64(item)));
1250
node.AddAttribute("values_floats",
_valueMap
.GetValues<float>());
1254
node.AddAttribute("values_floats",
_valueMap
.GetValues<double>().Select(item => Convert.ToSingle(item)));
1260
node.AddAttribute("values_strings",
_valueMap
.GetValues<ReadOnlyMemory<char>>());
1264
node.AddAttribute("values_floats",
_valueMap
.GetValues<bool>().Select(item => Convert.ToSingle(item)));
1283
if (_inputSchema[_columns[i].inputColumnName].Type is VectorDataViewType &&
_valueMap
.ValueColumn.Type is VectorDataViewType)
1285
var colType =
_valueMap
.ValueColumn.Type;
1287
colType = new VectorDataViewType(ColumnTypeExtensions.PrimitiveTypeFromType(
_valueMap
.ValueColumn.Type.GetItemType().RawType));
1288
result[i] = new DataViewSchema.DetachedColumn(_columns[i].outputColumnName, colType,
_valueMap
.ValueColumn.Annotations);