Skip to content

Promote experimental FIL to stable#6464

Merged
rapids-bot[bot] merged 17 commits intorapidsai:branch-25.04from
wphicks:fea-fil_promotion
Mar 26, 2025
Merged

Promote experimental FIL to stable#6464
rapids-bot[bot] merged 17 commits intorapidsai:branch-25.04from
wphicks:fea-fil_promotion

Conversation

@wphicks
Copy link
Copy Markdown
Contributor

@wphicks wphicks commented Mar 19, 2025

This PR promotes experimental FIL to the new stable FIL. This is purely a Python-level change. cuml.fil.fil.ForestInference now resolves to a thin wrapper around cuml.experimental.fil.fil.ForestInference with warnings about upcoming changes to the output shape of FIL predictions. Random forest estimators continue to use legacy FIL because of their usage of TreeliteModel, an obsolete implementation detail of legacy FIL. A future change should switch this to Treelite's native treelite.Model wrapper.

The legacy FIL implementation has been moved to cuml.legacy.fil.fil.ForestInference. This can be removed in 25.06. The thin wrapper around cuml.experimental.fil.fil.ForestInference can also be removed in 25.06 once users have a deprecation cycle to adapt to new output shapes.

This is marked as a breaking change because it removes the shape_str attribute from ForestInference objects. This attribute is not used anywhere in cuML and appears to have existed primarily for debugging.

Resolve #6460.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Mar 19, 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 labels Mar 19, 2025
@wphicks wphicks added feature request New feature or request breaking Breaking change labels Mar 19, 2025
@wphicks wphicks marked this pull request as ready for review March 19, 2025 20:43
@wphicks wphicks requested review from a team as code owners March 19, 2025 20:43
@wphicks wphicks requested review from bdice and vyasr March 19, 2025 20:43
@csadorf csadorf self-requested a review March 21, 2025 13:01
Copy link
Copy Markdown
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

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

One small fixup, but otherwise this LGTM.

Comment thread python/cuml/cuml/legacy/fil/fil.pyx Outdated
Comment thread python/cuml/cuml/fil/README.md
@csadorf
Copy link
Copy Markdown
Contributor

csadorf commented Mar 26, 2025

/merge

@csadorf
Copy link
Copy Markdown
Contributor

csadorf commented Mar 26, 2025

@vyasr @bdice This PR still needs cuml-cmake-codeowners approval.

@rapids-bot rapids-bot Bot merged commit 6265d9c into rapidsai:branch-25.04 Mar 26, 2025
74 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change CMake Cython / Python Cython or Python issue feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promote experimental FIL and maintain current FIL as LegacyFIL

4 participants