Skip to content

Deprecate convert_to_* methods in favor of as_* methods in cuml.ensemble#7254

Merged
rapids-bot[bot] merged 3 commits intorapidsai:branch-25.10from
jcrist:convert-to-as-methods
Sep 24, 2025
Merged

Deprecate convert_to_* methods in favor of as_* methods in cuml.ensemble#7254
rapids-bot[bot] merged 3 commits intorapidsai:branch-25.10from
jcrist:convert-to-as-methods

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Sep 22, 2025

This deprecates:

  • convert_to_fil_model in favor of as_fil
  • convert_to_treelite_model in favor of as_treelite

These method names are more aligned with other conversion method names like as_sklearn, leading to a bit more uniform UX.

Also updates a comment as mentioned here: #7249 (comment).

This deprecates:

- `convert_to_fil_model` in favor of `as_fil`
- `convert_to_treelite_model` in favor of `as_treelite`

These method names are more aligned with other conversion method names
like `as_sklearn`, leading to a bit more uniform UX.
@jcrist jcrist self-assigned this Sep 22, 2025
@jcrist jcrist requested a review from a team as a code owner September 22, 2025 20:43
@jcrist jcrist requested a review from viclafargue September 22, 2025 20:43
@jcrist jcrist added Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function breaking Breaking change algo: random-forest labels Sep 22, 2025
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jcrist jcrist mentioned this pull request Sep 22, 2025
Comment on lines +523 to +529
# XXX: Theoretically we could wrap `tl_handle` with `treelite.Model` to
# manage ownership, and keep the loaded model around. However, this
# only works if the `libtreelite` is ABI compatible with the one used
# by `cuml`. This is currently true for conda environments, but not for
# wheels where `cuml` and `treelite` use different manylinux ABIs. So
# for now we need to do this serialize-and-reload dance. If/when this
# is fixed we could instead store the loaded model and use that instead.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for updating the comment. The language is clearer now.

@betatim
Copy link
Copy Markdown
Member

betatim commented Sep 23, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 3a89987 into rapidsai:branch-25.10 Sep 24, 2025
101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

algo: random-forest breaking Breaking change Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants