Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FEAT] Support plottinguser_attrs inplot_parallel_coordinate#6367

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
WenhaoYou1 wants to merge5 commits intooptuna:master
base:master
Choose a base branch
Loading
fromWenhaoYou1:6329-add-user-attrs

Conversation

@WenhaoYou1
Copy link

Motivation

Currently,plot_parallel_coordinate only supports visualizing hyperparameters stored intrial.params. Users often want to visualize custom metrics or attributes stored intrial.user_attrs (e.g., the number of estimators in a GBDT model, or other auxiliary metrics) alongside hyperparameters to analyze their relationships.

Description of Changes

  • Modifiedoptuna/visualization/_parallel_coordinate.py to allow keys fromuser_attrs to be passed in theparams argument.
  • Updated the value extraction logic to look up values intrial.user_attrs if the key is not found intrial.params.
  • Implemented automatic type inference foruser_attrs: string and boolean values are treated as categorical, while others are treated as numerical.
  • Updatedoptuna/visualization/_utils.py (_get_skipped_trial_numbers) to correctly check for the existence of keys inuser_attrs when filtering trials.
  • Updated the docstring ofplot_parallel_coordinate to reflect this new capability.

Description of Tests

  • Added a new test casetest_get_parallel_coordinate_info_user_attrs intests/visualization_tests/test_parallel_coordinate.py.
  • Added comprehensive teststest_get_parallel_coordinate_info_user_attrs_boolean andtest_get_parallel_coordinate_info_user_attrs_missing to verify edge cases.
  • Verified thatuser_attrs are correctly extracted and visualized.
  • Verified that both numerical and categorical (string/boolean)user_attrs are handled correctly.
  • Verified that trials missing requesteduser_attrs are correctly skipped.
  • Ran existing tests to ensure no regressions.

Related Issues

#6329

Copy link
Member

@c-batac-bata left a comment

Choose a reason for hiding this comment

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

Could you please check the comment below?
#6368 (review)

@github-actions
Copy link
Contributor

This pull request has not seen any recent activity.

@github-actionsgithub-actionsbot added the staleExempt from stale bot labeling. labelDec 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@c-batac-batac-bata requested changes

Requested changes must be addressed to merge this pull request.

Assignees

@c-batac-bata

Labels

staleExempt from stale bot labeling.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@WenhaoYou1@c-bata

[8]ページ先頭

©2009-2025 Movatter.jp