Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update compatibility with scikitlearn 1.4 #1343

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
deap>=1.2
nose==1.3.7
numpy>=1.16.3
scikit-learn>=1.1.3
scikit-learn>=1.4.1
imbalanced-learn>=0.7.0
scipy>=1.3.1
tqdm>=4.36.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def calculate_version():
zip_safe=True,
install_requires=['numpy>=1.16.3',
'scipy>=1.3.1',
'scikit-learn>=1.1.3',
'scikit-learn>=1.4.1',
'deap>=1.2',
'update_checker>=0.16',
'tqdm>=4.36.1',
Expand Down
3 changes: 2 additions & 1 deletion tpot/gp_deap.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ def _wrapped_cross_val_score(sklearn_pipeline, features, target,
verbose=0,
parameters=None,
error_score='raise',
fit_params=sample_weight_dict)
fit_params=sample_weight_dict,
score_params=None)
for train, test in cv_iter]
if isinstance(scores[0], list): #scikit-learn <= 0.23.2
CV_score = np.array(scores)[:, 0]
Expand Down