Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

scikit-learn missing from requirements.txt #140

Closed
eguiraud opened this issue May 17, 2023 · 1 comment · Fixed by #227
Closed

scikit-learn missing from requirements.txt #140

eguiraud opened this issue May 17, 2023 · 1 comment · Fixed by #227

Comments

@eguiraud
Copy link
Contributor

It's now a mandatory dependency:

Traceback (most recent call last):
  File "/home/blue/Scratchpad/work/agc/analysis-grand-challenge/analyses/cms-open-data-ttbar/ttbar_analysis_pipeline.py", line 615, in <module>
    model_even = XGBClassifier()
                 ^^^^^^^^^^^^^^^
  File "/home/blue/Tools/miniconda3/envs/agc-py311/lib/python3.11/site-packages/xgboost/core.py", line 620, in inner_f
    return func(**kwargs)
           ^^^^^^^^^^^^^^
  File "/home/blue/Tools/miniconda3/envs/agc-py311/lib/python3.11/site-packages/xgboost/sklearn.py", line 1422, in __init__
    super().__init__(objective=objective, **kwargs)
  File "/home/blue/Tools/miniconda3/envs/agc-py311/lib/python3.11/site-packages/xgboost/sklearn.py", line 584, in __init__
    raise ImportError(
ImportError: sklearn needs to be installed in order to use this module
@eguiraud
Copy link
Contributor Author

eguiraud commented May 18, 2023

(I would have opened a PR that adds it but the current requirements.txt specifies exact versions for all packages and I can't use those versions on my system because I'm on Python 3.11 -- see also #141 #144 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant