Skip to content

Commit 6badaa5

Browse files
author
Sergey Feldman
committed
pretty json
1 parent 607f9f3 commit 6badaa5

File tree

2 files changed

+1551
-3
lines changed

2 files changed

+1551
-3
lines changed

01_compare_linear_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def define_and_evaluate_pipelines(X, y, random_state=0):
9494
evaluated_datasets = []
9595
for i, dataset_name in enumerate(database.index.values):
9696
X, y = load_data(dataset_name)
97-
# datasets might have too few samples overall or per class
98-
if len(y) > 50 and len(pd.value_counts(y) > 16):
97+
# datasets might have too few samples per class
98+
if np.sum(pd.value_counts(y) <= 15) == 0:
9999
np.random.seed(0)
100100
if len(y) > 10000:
101101
# subset to 10000

0 commit comments

Comments
 (0)