71 references to NumberParseOption
Microsoft.ML.Predictor.Tests (20)
TestPredictors.cs (20)
416
RunAllTests(regressionPredictors, regressionDatasets, parseOption:
NumberParseOption
.UseSingle);
570
RunAllTests(regPredictors, regDatasets, parseOption:
NumberParseOption
.UseSingle);
584
RunAllTests(regPredictors, regDatasets, extraTag: "MAE", parseOption:
NumberParseOption
.UseSingle);
598
RunAllTests(regPredictors, regDatasets, extraTag: "RMSE", parseOption:
NumberParseOption
.UseSingle);
2203
Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2212
RunOneAllTests(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption:
NumberParseOption
.UseSingle);
2220
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption:
NumberParseOption
.UseSingle);
2228
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption:
NumberParseOption
.UseSingle);
2236
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2244
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption:
NumberParseOption
.UseSingle);
2252
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2260
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption:
NumberParseOption
.UseSingle);
2268
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2276
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption:
NumberParseOption
.UseSingle);
2284
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2292
Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption:
NumberParseOption
.UseSingle);
2300
Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2308
Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption:
NumberParseOption
.UseSingle);
2316
Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 3, parseOption:
NumberParseOption
.UseSingle);
2324
Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 4, parseOption:
NumberParseOption
.UseSingle);
Microsoft.ML.TestFramework (46)
BaseTestBaseline.cs (13)
385
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
395
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
401
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
507
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
574
int digitsOfPrecision,
NumberParseOption
parseOption)
593
int digitsOfPrecision,
NumberParseOption
parseOption)
595
if (parseOption ==
NumberParseOption
.UseSingle)
608
else if (parseOption ==
NumberParseOption
.UseDouble)
623
throw new ArgumentException($"Invalid {nameof(
NumberParseOption
)}", nameof(parseOption));
BaseTestPredictorsMaml.cs (10)
95
protected void Run(RunContext ctx, int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
344
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
359
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
393
NumberParseOption
parseOption =
NumberParseOption
.Default)
432
int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
DataPipe\TestDataPipeBase.cs (4)
183
NumberParseOption
parseOption =
NumberParseOption
.Default)
379
NumberParseOption
parseOption =
NumberParseOption
.Default)
TestCommandBase.cs (19)
70
public bool CheckEquality(int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
76
public bool CheckEqualityNormalized(int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
216
public bool CheckEquality(int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default)
284
return TestCore(ctx, cmdName, args, DigitsOfPrecision,
NumberParseOption
.Default, toCompare);
292
protected bool TestCore(RunContextBase ctx, string cmdName, string args, int digitsOfPrecision,
NumberParseOption
parseOption, params PathArgument[] toCompare)
367
return TestCoreCore(ctx, cmdName, dataPath, situation, inModelPath, outModelPath, loaderArgs, extraArgs, DigitsOfPrecision,
NumberParseOption
.Default, toCompare);
372
NumberParseOption
parseOption, params PathArgument[] toCompare)
424
protected bool TestCore(RunContextBase ctx, string cmdName, string dataPath, string loaderArgs, string extraArgs, int digitsOfPrecision,
NumberParseOption
parseOption, params PathArgument[] toCompare)
446
protected bool TestInCore(RunContextBase ctx, string cmdName, string dataPath, OutputPath modelPath, string extraArgs, int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default, params PathArgument[] toCompare)
480
protected bool TestInOutCore(RunContextBase ctx, string cmdName, string dataPath, OutputPath modelPath, string extraArgs, int digitsOfPrecision = DigitsOfPrecision,
NumberParseOption
parseOption =
NumberParseOption
.Default, params PathArgument[] toCompare)
654
return TestCore(Params, cmdName, dataPath, loaderArgs, extraArgs, DigitsOfPrecision,
NumberParseOption
.Default, toCompare);
659
return TestCore(Params, cmdName, dataPath, loaderArgs, extraArgs, digitsOfPrecision,
NumberParseOption
.Default, toCompare);
680
return TestInCore(Params, cmdName, dataPath, modelPath, extraArgs, digitsOfPrecision,
NumberParseOption
.Default, toCompare);
690
return TestInOutCore(Params, cmdName, dataPath, modelPath, extraArgs, digitsOfPrecision,
NumberParseOption
.Default, toCompare);
Microsoft.ML.Tests (3)
OnnxConversionTest.cs (2)
860
CheckEquality(subDir, onnxTextName, parseOption:
NumberParseOption
.UseSingle);
1176
CheckEquality(subDir, onnxTextName, parseOption:
NumberParseOption
.UseSingle);
Transformers\WordEmbeddingsTests.cs (1)
99
CheckEquality("Text", "customWordEmbeddings.tsv", parseOption:
NumberParseOption
.UseSingle);
Microsoft.ML.TimeSeries.Tests (2)
TimeSeries.cs (2)
39
parseOption:
NumberParseOption
.UseSingle);
55
parseOption:
NumberParseOption
.UseSingle);