99 references to MapValue
Microsoft.ML.AutoML.Tests (1)
UserInputValidationTests.cs (1)
358
var convertLabelToBoolEstimator = mlContext.Transforms.Conversion.
MapValue
(DefaultColumnNames.Label,
Microsoft.ML.Data (1)
Transforms\ValueMapping.cs (1)
166
/// <seealso cref="ConversionsExtensionsCatalog.
MapValue
{TInputType, TOutputType}(TransformsCatalog.ConversionTransforms, string, IEnumerable{KeyValuePair{TInputType, TOutputType}}, string, bool)"/>
Microsoft.ML.Samples (3)
Dynamic\Transforms\Conversion\MapValue.cs (3)
56
var pipeline = mlContext.Transforms.Conversion.
MapValue
(
58
Transforms.Conversion.
MapValue
("ScoreCategory", scoreMap, "Score"))
63
.Append(mlContext.Transforms.Conversion.
MapValue
("Label",
Microsoft.ML.Tests (94)
OnnxConversionTest.cs (92)
1247
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, int> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1248
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, long> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1249
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, short> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1250
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, uint> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1251
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, ushort> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1252
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, ulong> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1253
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, string> { { 3, "True" }, { 23, "False" } }, "Keys", treatValuesAsKeyType));
1254
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, float> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1255
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, double> { { 3, 698 }, { 23, 7908 } }, "Keys", treatValuesAsKeyType));
1256
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<float, bool> { { 3, false }, { 23, true } }, "Keys", treatValuesAsKeyType));
1260
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1261
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1262
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1263
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1264
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1265
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, float> { { 3, 6 }, { 23, 46 } }, "Keys"));
1266
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, long> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1267
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, double> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1268
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<double, bool> { { 3, true }, { 23, false } }, "Keys"));
1272
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, int> { { true, 6 }, { false, 46 } }, "Keys"));
1273
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, short> { { true, 6 }, { false, 46 } }, "Keys"));
1274
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, uint> { { true, 6 }, { false, 46 } }, "Keys"));
1275
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, ushort> { { true, 6 }, { false, 46 } }, "Keys"));
1276
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, ulong> { { true, 6 }, { false, 46 } }, "Keys"));
1277
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, string> { { true, "True" }, { false, "False" } }, "Keys"));
1278
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, float> { { true, 6 }, { false, 46 } }, "Keys"));
1279
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, long> { { true, 698 }, { false, 7908 } }, "Keys"));
1280
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, double> { { true, 698 }, { false, 7908 } }, "Keys"));
1281
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<bool, bool> { { false, true }, { true, false } }, "Keys"));
1285
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, int> { { "3", 3 }, { "23", 23 } }, "Keys"));
1286
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, short> { { "3", 3 }, { "23", 23 } }, "Keys"));
1287
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, uint> { { "3", 6 }, { "23", 46 } }, "Keys"));
1288
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, ushort> { { "3", 6 }, { "23", 46 } }, "Keys"));
1289
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, ulong> { { "3", 6 }, { "23", 46 } }, "Keys"));
1290
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, float> { { "3", 6 }, { "23", 23 } }, "Keys"));
1291
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, double> { { "3", 6 }, { "23", 23 } }, "Keys"));
1292
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, long> { { "3", 3 }, { "23", 23 } }, "Keys"));
1293
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<string, bool> { { "3", true }, { "23", false } }, "Keys"));
1297
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1298
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1299
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1300
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1301
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1302
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1303
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1304
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1305
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<int, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1309
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1310
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1311
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1312
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1313
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1314
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1315
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1316
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1317
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<short, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1321
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1322
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1323
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1324
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1325
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1326
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1327
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1328
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1329
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<long, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1333
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1334
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1335
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1336
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1337
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1338
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1339
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1340
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1341
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<uint, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1345
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1346
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1347
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1348
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1349
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1350
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1351
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1352
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1353
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ushort, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1357
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1358
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1359
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1360
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1361
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1362
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1363
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1364
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1365
pipelines.Add(mlContext.Transforms.Conversion.
MapValue
("Value", new Dictionary<ulong, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
Transformers\ValueMappingTests.cs (2)
558
var estimator = ML.Transforms.Conversion.
MapValue
("D", keyValuePairs, "A", true).
641
.Append(ML.Transforms.Conversion.
MapValue
("VecB", keyValuePairs, "TokenizeB"));