Skip to content

Add interval_handling field to NumericalAttribute#12

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/931246705
Open

Add interval_handling field to NumericalAttribute#12
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/931246705

Conversation

@copybara-service

Copy link
Copy Markdown

Add interval_handling field to NumericalAttribute

Adds a configurable interval_handling field to NumericalAttribute
that controls how discretized intervals are converted back to numerical
values in the reverse transformation. Three modes are supported:
'midpoint' (default, preserving existing behavior), 'sample' (uniform
draw from the interval), and 'interval' (keep the pd.Interval as-is).

Adds a configurable `interval_handling` field to `NumericalAttribute`
that controls how discretized intervals are converted back to numerical
values in the reverse transformation. Three modes are supported:
'midpoint' (default, preserving existing behavior), 'sample' (uniform
draw from the interval), and 'interval' (keep the pd.Interval as-is).

PiperOrigin-RevId: 931246705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants