Skip to content

Commit 51ad8fe

Browse files
benchmarks
1 parent 48144ad commit 51ad8fe

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

python/benchmarks.py

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ def trial_filter(task):
5252
return [
5353
# "xgboost-base",
5454
# "ebm-base",
55-
"aplr-01",
56-
"aplr-03",
5755
"aplr-base",
5856
]
5957

@@ -138,30 +136,6 @@ def trial_runner(trial):
138136
)
139137
y_train = y_train.astype(str).ravel()
140138
y_test = y_test.astype(str).ravel()
141-
elif trial.method.name == "aplr-01":
142-
est = Pipeline(
143-
[
144-
("ct", ct),
145-
(
146-
"est",
147-
APLRClassifier(v=0.1),
148-
),
149-
]
150-
)
151-
y_train = y_train.astype(str).ravel()
152-
y_test = y_test.astype(str).ravel()
153-
elif trial.method.name == "aplr-03":
154-
est = Pipeline(
155-
[
156-
("ct", ct),
157-
(
158-
"est",
159-
APLRClassifier(v=0.3),
160-
),
161-
]
162-
)
163-
y_train = y_train.astype(str).ravel()
164-
y_test = y_test.astype(str).ravel()
165139
else:
166140
raise RuntimeError(f"Method unavailable for {trial.method.name}")
167141

@@ -181,26 +155,6 @@ def trial_runner(trial):
181155
),
182156
]
183157
)
184-
elif trial.method.name == "aplr-01":
185-
est = Pipeline(
186-
[
187-
("ct", ct),
188-
(
189-
"est",
190-
APLRRegressor(v=0.1),
191-
),
192-
]
193-
)
194-
elif trial.method.name == "aplr-03":
195-
est = Pipeline(
196-
[
197-
("ct", ct),
198-
(
199-
"est",
200-
APLRRegressor(v=0.3),
201-
),
202-
]
203-
)
204158
else:
205159
raise RuntimeError(f"Method unavailable for {trial.method.name}")
206160

0 commit comments

Comments
 (0)