Skip to content

Remove verbose descriptor#7527

Merged
rapids-bot[bot] merged 2 commits intorapidsai:mainfrom
jcrist:remove-verbose-descriptor
Nov 24, 2025
Merged

Remove verbose descriptor#7527
rapids-bot[bot] merged 2 commits intorapidsai:mainfrom
jcrist:remove-verbose-descriptor

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Nov 22, 2025

Previously the verbose attribute on an estimator had some magic in it where the value when accessed internally would be a cuml.internals.logger.level_enum, but externally would be an int or bool value as described by the public API.

This PR removes that magic in favor of simpler mechanisms. Now model.verbose is a normal attribute, and model._verbose_level a property that converts model.verbose to a level_enum.

Part of #5022.

@jcrist jcrist self-assigned this Nov 22, 2025
@jcrist jcrist requested a review from a team as a code owner November 22, 2025 01:05
@jcrist jcrist requested a review from viclafargue November 22, 2025 01:05
@jcrist jcrist added Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 22, 2025
Comment thread python/cuml/tests/test_hdbscan.py
Comment thread python/cuml/cuml/internals/logger.pyx
Comment thread python/cuml/cuml/ensemble/randomforest_common.pyx
This is now just a regular attribute, we convert to a `level_enum` when
needed to forward to the `libcuml` API. In the future we'll remove this
forwarding entirely in favor of configuring the logger contextually
outside of the libcuml calls.
@jcrist jcrist force-pushed the remove-verbose-descriptor branch from 07ae0cd to c7e8f32 Compare November 23, 2025 02:24
@jcrist jcrist requested a review from csadorf November 23, 2025 14:06
Comment thread python/cuml/cuml/ensemble/randomforest_common.pyx
Comment thread python/cuml/cuml/internals/base.py
@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Nov 24, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 142c911 into rapidsai:main Nov 24, 2025
102 checks passed
@jcrist jcrist deleted the remove-verbose-descriptor branch November 24, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants