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

Revert "Temporarily constraint to xgboost<1.0.0". #954

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

hvy
Copy link
Member

@hvy hvy commented Feb 24, 2020

This reverts commit bb48c47 (#948) as xgboost has been fixed.

@hvy hvy added the CI Continuous integration. label Feb 24, 2020
@hvy hvy added this to the v1.2.0 milestone Feb 24, 2020
@smly smly self-requested a review February 25, 2020 05:58
Copy link
Contributor

@smly smly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

• Verified that pip install xgboost try to install xgboost-1.0.1.
• Verified that xgboost-1.0.1 resolved dmlc/xgboost#5328.

LGTM. Thank you!

Copy link
Member

@toshihikoyanase toshihikoyanase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

[notes]
I checked by using python:3.5 docker image, and I found that examples/pruning/xgboost_cv_integration.py caused the following error if I did not install pandas. In the CI jobs, pandas is always installed with xgboost, and I don't think this is an issue.

[W 2020-02-25 12:08:40,676] Setting status of trial#0 as TrialState.FAIL because of the following error: AttributeError("'list' object has no attribute 'values'",)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/optuna/study.py", line 569, in _run_trial
    result = func(trial)
  File "xgboost_cv_integration.py", line 51, in objective
    mean_auc = history['test-auc-mean'].values[-1]
AttributeError: 'list' object has no attribute 'values'

@toshihikoyanase toshihikoyanase merged commit 53a629c into optuna:master Feb 25, 2020
@hvy hvy deleted the revert-948 branch February 25, 2020 12:23
@hvy
Copy link
Member Author

hvy commented Feb 25, 2020

Regarding the note, we could also update the example to always return a dict with lists using the as_pandas parameter https://github.com/dmlc/xgboost/blob/cfae247231e4977a78b255810565369c934fe1b5/python-package/xgboost/training.py#L518.

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

Successfully merging this pull request may close these issues.

3 participants