Skip to content

Commit a4895a7

Browse files
Add sizes selection to runner py (#103)
* sizes in configs * test config * knn_svm * Revert "knn_svm" This reverts commit 6272ea5. * revert changing skl config * sizes for df_clsf * update help info
1 parent 44cdb4f commit a4895a7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

configs/xpu/df_clsf.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
}
2727
}
2828
],
29+
"workload-size": "medium",
2930
"num-trees": 10,
3031
"max-depth": 5
3132
},
@@ -46,6 +47,7 @@
4647
}
4748
}
4849
],
50+
"workload-size": "large",
4951
"num-trees": 100,
5052
"max-depth": 8
5153
},
@@ -66,6 +68,7 @@
6668
}
6769
}
6870
],
71+
"workload-size": "medium",
6972
"num-trees": 20,
7073
"max-depth": 16
7174
},
@@ -86,6 +89,7 @@
8689
}
8790
}
8891
],
92+
"workload-size": "large",
8993
"num-trees": 100,
9094
"max-depth": 10
9195
},
@@ -106,6 +110,7 @@
106110
}
107111
}
108112
],
113+
"workload-size": "medium",
109114
"num-trees": 50,
110115
"max-depth": 15
111116
}

runner.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def get_configs(path: Path) -> List[str]:
5858
help='Available floating point data types'
5959
'This parameter only marks dtype as available, '
6060
'make sure to add the dtype parameter to the config file ')
61+
parser.add_argument('--workload-size', type=str, default="small medium large", nargs='+',
62+
choices=("small", "medium", "large"),
63+
help='Available workload sizes,'
64+
'make sure to add the workload-size parameter to the config file '
65+
'unmarked workloads will be launched anyway')
6166
parser.add_argument('--no-intel-optimized', default=False, action='store_true',
6267
help='Use Scikit-learn without Intel optimizations')
6368
parser.add_argument('--output-file', default='results.json',
@@ -105,6 +110,11 @@ def get_configs(path: Path) -> List[str]:
105110
params = common_params.copy()
106111
params.update(params_set.copy())
107112

113+
if 'workload-size' in params:
114+
if params['workload-size'] not in args.workload_size:
115+
continue
116+
del params['workload-size']
117+
108118
device = []
109119
if 'device' not in params:
110120
if 'sklearn' in params['lib']:

0 commit comments

Comments
 (0)