mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-15 07:25:53 +00:00
Fix some errors in tests
This commit is contained in:
@@ -152,7 +152,7 @@ class Datasets:
|
||||
if dataset_name is None:
|
||||
return class_names, results
|
||||
try:
|
||||
class_name = class_names[sets.index(dataset_name)]
|
||||
class_name = class_names[results.index(dataset_name)]
|
||||
except ValueError:
|
||||
raise ValueError(f"Unknown dataset: {dataset_name}")
|
||||
return [class_name], [dataset_name]
|
||||
|
@@ -102,7 +102,7 @@ class ModelTest(TestBase):
|
||||
test = {
|
||||
"STree": ((11, 6, 4), 1.0),
|
||||
"Wodt": ((303, 152, 50), 0.9382022471910112),
|
||||
"ODTE": ((7.86, 4.43, 3.37), 1.0),
|
||||
"ODTE": ((786, 443, 337), 1.0),
|
||||
"Cart": ((23, 12, 5), 1.0),
|
||||
"SVC": ((0, 0, 0), 0.7078651685393258),
|
||||
"RandomForest": ((21.3, 11, 5.26), 1.0),
|
||||
|
@@ -1,2 +1,2 @@
|
||||
iris,class,all
|
||||
wine,class,[0, 1]
|
||||
iris;class;all
|
||||
wine;class;[0, 1]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
1;1;"Datasets used in benchmark ver. 0.5.0"
|
||||
1;1;"Datasets used in benchmark ver. 1.0.1"
|
||||
2;1;" Default score accuracy"
|
||||
2;2;"Cross validation"
|
||||
2;6;"5 Folds"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[94mDatasets used in benchmark ver. 0.5.0
|
||||
[94mDatasets used in benchmark ver. 1.0.1
|
||||
|
||||
Dataset Sampl. Feat. Cont Cls Balance
|
||||
============================== ====== ===== ==== === ==========================================
|
||||
|
Reference in New Issue
Block a user