Skip to content

[WIP] Remove legacy FIL #6603

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

Draft
wants to merge 2 commits into
base: branch-25.06
Choose a base branch
from
Draft

Conversation

hcho3
Copy link
Contributor

@hcho3 hcho3 commented Apr 29, 2025

  • Remove legacy FIL from gtest
  • Remove legacy FIL from the Python layer of cuML RF

Copy link

copy-pr-bot bot commented Apr 29, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added Cython / Python Cython or Python issue CMake CUDA/C++ labels Apr 29, 2025
Comment on lines +242 to +250
// Allocate workspace and perform segmented reduce
thrust::device_vector<kv_type> workspace2(
params.n_rows + temp_storage_bytes / sizeof(kv_type) + 1);
cub::DeviceSegmentedReduce::ArgMax(
thrust::raw_pointer_cast(workspace2.data() + params.n_rows), temp_storage_bytes,
workspace->begin(), workspace2.begin(),
params.n_rows, offsets_it, offsets_it + 1);
thrust::transform(workspace2.begin(), workspace2.begin() + params.n_rows, pred->begin(),
[] __device__ (kv_type x) -> int { return x.key; });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note. The new FIL always returns probabilities for classifiers. If class outputs are desired, we need to perform argmax.

@csadorf csadorf linked an issue Apr 29, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove LegacyFIL and switch RandomForest to use new FIL
1 participant