Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaillard committed Oct 25, 2024
1 parent 78237c2 commit 4065a7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions hidimstat/test/test_cpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_cpi(linear_scenario):
estimator=regression_model,
imputation_model=imputation_model,
n_permutations=20,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_cpi(linear_scenario):
estimator=regression_model,
imputation_model=imputation_model_list,
n_permutations=20,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand All @@ -82,7 +82,7 @@ def test_cpi(linear_scenario):
n_permutations=20,
random_state=0,
n_jobs=1,
score_proba=True,
method="predict_proba",
loss=log_loss,
)
cpi.fit(
Expand Down
6 changes: 3 additions & 3 deletions hidimstat/test/test_loco.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_loco(linear_scenario):

loco = LOCO(
estimator=regression_model,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand Down Expand Up @@ -49,7 +49,7 @@ def test_loco(linear_scenario):
regression_model.fit(X_train_df, y_train)
loco = LOCO(
estimator=regression_model,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand All @@ -71,7 +71,7 @@ def test_loco(linear_scenario):

loco_clf = LOCO(
estimator=logistic_model,
score_proba=True,
method="predict_proba",
random_state=0,
n_jobs=1,
loss=log_loss,
Expand Down
6 changes: 3 additions & 3 deletions hidimstat/test/test_permutation_importance.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_permutation_importance(linear_scenario):
pi = PermutationImportance(
estimator=regression_model,
n_permutations=20,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand Down Expand Up @@ -50,7 +50,7 @@ def test_permutation_importance(linear_scenario):
pi = PermutationImportance(
estimator=regression_model,
n_permutations=20,
score_proba=False,
method="predict",
random_state=0,
n_jobs=1,
)
Expand All @@ -73,7 +73,7 @@ def test_permutation_importance(linear_scenario):
pi_clf = PermutationImportance(
estimator=logistic_model,
n_permutations=20,
score_proba=True,
method="predict_proba",
random_state=0,
n_jobs=1,
loss=log_loss,
Expand Down

0 comments on commit 4065a7a

Please sign in to comment.