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

Fix rng for the column sampler. #10998

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Nov 14, 2024

  • Use GlobalRandom
  • Small cleanup for the GPU ctors.

Close #10997 .

@trivialfis trivialfis mentioned this pull request Nov 14, 2024
3 tasks
@@ -233,7 +233,7 @@ class ColumnSampler {
};

inline auto MakeColumnSampler(Context const* ctx) {
std::uint32_t seed = common::GlobalRandomEngine()();
Copy link
Member Author

Choose a reason for hiding this comment

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

For the longer term, we should remove this global rng.

@trivialfis
Copy link
Member Author

cc @rongou Could you please help take a look when you have a spare moment?

@trivialfis trivialfis merged commit a92ed1d into dmlc:master Nov 19, 2024
31 checks passed
@trivialfis trivialfis deleted the fix-colsample-rng branch November 19, 2024 04:21
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Nov 19, 2024
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 this pull request may close these issues.

XGBoost Python API ignoring random state
3 participants