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

Cover approx tree method for categorical data tests. #7569

Merged
merged 2 commits into from
Jan 16, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
fix.
  • Loading branch information
trivialfis committed Jan 15, 2022

Verified

This commit was signed with the committer’s verified signature.
Crazybus Michael Russell
commit 063cf9575b48d826338286180d98eaff5365251d
2 changes: 1 addition & 1 deletion tests/python/test_plotting.py
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ def test_importance_plot_lim(self):
def run_categorical(self, tree_method: str) -> None:
X, y = tm.make_categorical(1000, 31, 19, onehot=False)
reg = xgb.XGBRegressor(
enable_categorical=True, n_estimators=10, tree_method="gpu_hist"
enable_categorical=True, n_estimators=10, tree_method=tree_method
)
reg.fit(X, y)
trees = reg.get_booster().get_dump(dump_format="json")