Skip to content

Commit f78ce45

Browse files
REF: Update experiment configuration JSONs (#29)
* STY: Normalize formatting in experiment config files * REF: Fix dataset paths and update dataset list * REF: Rename SVMOP config file * FIX: Correct classifier names, config keys and cv_metric in config JSONs * MNT: Remove obsolote experiment config * REF: Update classifier parameters and hyperparameters * REF: Update configuration names * REF: Update classifier paths
1 parent 813ba85 commit f78ce45

File tree

11 files changed

+190
-365
lines changed

11 files changed

+190
-365
lines changed
Lines changed: 74 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,76 @@
11
{
2-
3-
4-
"general_conf": {
5-
6-
"basedir": "orca_python/datasets/data",
7-
"datasets": ["tae", "balance-scale", "contact-lenses"],
8-
"hyperparam_cv_nfolds": 3,
9-
"jobs": 10,
10-
"input_preprocessing": "std",
11-
"output_folder": "my_runs/",
12-
"metrics": ["ccr", "mae", "amae", "mze"],
13-
"cv_metric": "mae"
14-
},
15-
16-
17-
"configurations": {
18-
19-
"SVM": {
20-
21-
"classifier": "sklearn.svm.SVC",
22-
"parameters": {
23-
"C": [0.001, 0.1, 1, 10, 100],
24-
"gamma": [0.1, 1, 10]
25-
}
26-
},
27-
28-
29-
"SVMOP": {
30-
31-
"classifier": "orca_python.classifiers.OrdinalDecomposition",
32-
"parameters": {
33-
"dtype": "ordered_partitions",
34-
"decision_method": "frank_hall",
35-
"base_classifier": "sklearn.svm.SVC",
36-
"parameters": {
37-
"C": [0.01, 0.1, 1, 10],
38-
"gamma": [0.01, 0.1, 1, 10],
39-
"probability": ["True"]
40-
}
41-
42-
}
43-
},
44-
45-
46-
"LR": {
47-
48-
"classifier": "orca_python.classifiers.OrdinalDecomposition",
49-
"parameters": {
50-
"dtype": ["ordered_partitions", "one_vs_next"],
51-
"decision_method": "exponential_loss",
52-
"base_classifier": "sklearn.linear_model.LogisticRegression",
53-
"parameters": {
54-
"solver": ["liblinear"],
55-
"C": [0.01, 0.1, 1, 10],
56-
"penalty": ["l1","l2"]
57-
}
58-
59-
}
60-
},
61-
62-
"REDSVM": {
63-
64-
"classifier": "orca_python.classifiers.REDSVM",
65-
"parameters": {
66-
"kernel": 2,
67-
"degree": 3,
68-
"gamma": 0.1,
69-
"coef0": 0,
70-
"C": 1,
71-
"tol": 0.001,
72-
"shrinking": 1
73-
}
74-
75-
},
76-
77-
"SVOREX": {
78-
79-
"classifier": "orca_python.classifiers.SVOREX",
80-
"parameters": {
81-
"kernel": 0,
82-
"C": [0.1, 1, 10],
83-
"kappa": [0.1, 1, 10],
84-
"tol": 0.001
85-
}
86-
87-
}
88-
89-
}
90-
91-
2+
"general_conf": {
3+
"basedir": "orca_python/datasets/data",
4+
"datasets": [
5+
"balance-scale",
6+
"car",
7+
"contact-lenses",
8+
"ERA",
9+
"tae",
10+
"winequality-red"
11+
],
12+
"hyperparam_cv_nfolds": 3,
13+
"jobs": 10,
14+
"input_preprocessing": "std",
15+
"output_folder": "my_runs/",
16+
"metrics": ["ccr", "mae", "amae", "mze"],
17+
"cv_metric": "mae"
18+
},
19+
"configurations": {
20+
"SVM": {
21+
"classifier": "sklearn.svm.SVC",
22+
"parameters": {
23+
"C": [0.001, 0.1, 1, 10, 100],
24+
"gamma": [0.1, 1, 10]
25+
}
26+
},
27+
"SVMOP": {
28+
"classifier": "orca_python.classifiers.OrdinalDecomposition",
29+
"parameters": {
30+
"dtype": "ordered_partitions",
31+
"decision_method": "frank_hall",
32+
"base_classifier": "sklearn.svm.SVC",
33+
"parameters": {
34+
"C": [0.01, 0.1, 1, 10],
35+
"gamma": [0.01, 0.1, 1, 10],
36+
"probability": ["True"]
37+
}
38+
}
39+
},
40+
"LR": {
41+
"classifier": "orca_python.classifiers.OrdinalDecomposition",
42+
"parameters": {
43+
"dtype": ["ordered_partitions", "one_vs_next"],
44+
"decision_method": "exponential_loss",
45+
"base_classifier": "sklearn.linear_model.LogisticRegression",
46+
"parameters": {
47+
"solver": ["liblinear"],
48+
"C": [0.01, 0.1, 1, 10],
49+
"penalty": ["l1", "l2"]
50+
}
51+
52+
}
53+
},
54+
"REDSVM": {
55+
"classifier": "orca_python.classifiers.REDSVM",
56+
"parameters": {
57+
"kernel": "rbf",
58+
"degree": 3,
59+
"gamma": 0.1,
60+
"coef0": 0,
61+
"C": 1,
62+
"tol": 0.001,
63+
"shrinking": 1
64+
}
65+
},
66+
"SVOREX": {
67+
"classifier": "orca_python.classifiers.SVOREX",
68+
"parameters": {
69+
"kernel": "gaussian",
70+
"C": [0.1, 1, 10],
71+
"kappa": [0.1, 1, 10],
72+
"tol": 0.001
73+
}
74+
}
75+
}
9276
}
Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
{
2-
32
"general_conf": {
4-
5-
"basedir": "datasets",
6-
"datasets": ["balance-scale", "contact-lenses", "tae", "car", "winequality-red", "ERA"],
7-
"hyperparam_cv_nfolds": 5,
8-
"jobs": 10,
9-
"input_preprocessing": "std",
10-
"output_folder": "my_runs/",
11-
"metrics": ["ccr", "mae", "mze"],
12-
"cv_metric": "mae"
13-
14-
},
15-
16-
17-
"configurations": {
18-
19-
"nnop-mae": {
20-
21-
"classifier": "NNOP",
22-
"parameters": {
3+
"basedir": "orca_python/datasets/data",
4+
"datasets": ["balance-scale"],
5+
"hyperparam_cv_nfolds": 3,
6+
"jobs": 10,
7+
"input_preprocessing": "std",
8+
"output_folder": "my_runs/",
9+
"metrics": ["ccr", "mae", "mze"],
10+
"cv_metric": "mae"
11+
},
12+
"configurations": {
13+
"NNOP-MAE": {
14+
"classifier": "orca_python.classifiers.NNOP",
15+
"parameters": {
2316
"epsilon_init": 0.5,
24-
"n_hidden": [5,10,20,30,40,50],
17+
"n_hidden": [5, 10, 20, 30, 40, 50],
2518
"max_iter": [250, 500],
26-
"lambda_value": [0, 0.01, 1]
27-
19+
"lambda_value": [0, 0.01, 1]
2820
}
29-
30-
}
31-
32-
}
33-
21+
}
22+
}
3423
}
Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
{
2-
32
"general_conf": {
4-
5-
"basedir": "datasets",
6-
"datasets": ["balance-scale", "contact-lenses", "tae", "car", "winequality-red", "ERA"],
7-
"hyperparam_cv_nfolds": 5,
3+
"basedir": "orca_python/datasets/data",
4+
"datasets": ["balance-scale"],
5+
"hyperparam_cv_nfolds": 3,
86
"jobs": 10,
97
"input_preprocessing": "std",
108
"output_folder": "my_runs/",
119
"metrics": ["ccr", "mae", "mze"],
1210
"cv_metric": "mze"
13-
1411
},
15-
16-
1712
"configurations": {
18-
19-
"nnop-mze": {
20-
21-
"classifier": "NNPOM",
13+
"NNOP-MZE": {
14+
"classifier": "orca_python.classifiers.NNOP",
2215
"parameters": {
2316
"epsilon_init": 0.5,
24-
"n_hidden": [5,10,20,30,40,50],
17+
"n_hidden": [5, 10, 20, 30, 40, 50],
2518
"max_iter": [250, 500],
2619
"lambda_value": [0, 0.01, 1]
27-
2820
}
29-
3021
}
31-
3222
}
33-
3423
}

orca_python/configurations/nnop_test.json

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
11
{
2-
32
"general_conf": {
4-
5-
"basedir": "tests/test_datasets/test_nnpom_nnop_load_dataset",
6-
"datasets": ["toy"],
7-
"hyperparam_cv_nfolds": 5,
3+
"basedir": "orca_python/datasets/data",
4+
"datasets": ["balance-scale"],
5+
"hyperparam_cv_nfolds": 3,
86
"jobs": 10,
7+
"input_preprocessing": "std",
98
"output_folder": "my_runs/",
109
"metrics": ["ccr", "mae", "mze"],
11-
"cv_metric": "ccr"
12-
10+
"cv_metric": "mae"
1311
},
14-
15-
1612
"configurations": {
17-
18-
"expectedPredictions0": {
19-
20-
"classifier": "NNPOM",
13+
"NNPOM-MAE": {
14+
"classifier": "orca_python.classifiers.NNPOM",
2115
"parameters": {
2216
"epsilon_init": 0.5,
23-
"n_hidden": 10,
24-
"max_iter": 500,
25-
"lambda_value": 0.01
26-
17+
"n_hidden": [5, 10, 20, 30, 40, 50],
18+
"max_iter": [250, 500],
19+
"lambda_value": [0, 0.01, 1]
2720
}
28-
2921
}
30-
3122
}
32-
3323
}
Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
{
2-
32
"general_conf": {
4-
5-
"basedir": "datasets",
6-
"datasets": ["balance-scale", "contact-lenses", "tae", "car", "winequality-red", "ERA"],
7-
"hyperparam_cv_nfolds": 5,
8-
"jobs": 10,
9-
"input_preprocessing": "std",
10-
"output_folder": "my_runs/",
11-
"metrics": ["ccr", "mae", "mze"],
12-
"cv_metric": "mze"
13-
14-
},
15-
16-
17-
"configurations": {
18-
19-
"nnop-mze": {
20-
21-
"classifier": "NNOP",
22-
"parameters": {
3+
"basedir": "orca_python/datasets/data",
4+
"datasets": ["balance-scale"],
5+
"hyperparam_cv_nfolds": 3,
6+
"jobs": 10,
7+
"input_preprocessing": "std",
8+
"output_folder": "my_runs/",
9+
"metrics": ["ccr", "mae", "mze"],
10+
"cv_metric": "mze"
11+
},
12+
"configurations": {
13+
"NNPOM-MZE": {
14+
"classifier": "orca_python.classifiers.NNPOM",
15+
"parameters": {
2316
"epsilon_init": 0.5,
24-
"n_hidden": [5,10,20,30,40,50],
17+
"n_hidden": [5, 10, 20, 30, 40, 50],
2518
"max_iter": [250, 500],
26-
"lambda_value": [0, 0.01, 1]
27-
19+
"lambda_value": [0, 0.01, 1]
2820
}
29-
30-
}
31-
32-
}
33-
21+
}
22+
}
3423
}

0 commit comments

Comments
 (0)