Skip to content

Conversation

@oscarkey
Copy link
Contributor

@oscarkey oscarkey commented Nov 4, 2025

In InferenceConfig. Other values are possible, and Pydantic blocks them.

There may be other types that need adjusting, but start with this one.

In InferenceConfig. Other values are possible, and Pydantic blocks them.

There may be other types that need adjusting, but start with this one.
@oscarkey oscarkey requested a review from bejaeger November 4, 2025 15:23
@oscarkey oscarkey requested a review from a team as a code owner November 4, 2025 15:23
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the restrictive Literal type from REGRESSION_Y_PREPROCESS_TRANSFORMS in InferenceConfig, replacing it with tuple[str | None, ...]. This change allows for a wider range of preprocessing transformations to be used, as defined in get_all_reshape_feature_distribution_preprocessors. The corresponding docstring has also been updated to reflect this. The change is well-motivated and correctly implemented. I have one suggestion to improve the clarity of the updated docstring.

Copy link
Contributor

@bejaeger bejaeger left a comment

Choose a reason for hiding this comment

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

Thanks!

@oscarkey oscarkey enabled auto-merge (squash) November 4, 2025 15:34
@oscarkey oscarkey merged commit c2b1d23 into main Nov 4, 2025
10 checks passed
@oscarkey oscarkey deleted the ok-validation branch November 4, 2025 19:10
oscarkey added a commit that referenced this pull request Nov 12, 2025
…_TRANSFORMS. (#229)

* Record copied public PR 587

* Remove type restriction on REGRESSION_Y_PREPROCESS_TRANSFORMS. (#587)

(cherry picked from commit c2b1d23)

---------

Co-authored-by: mirror-bot <mirror-bot@users.noreply.github.com>
Co-authored-by: Oscar Key <oscar@priorlabs.ai>
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.

3 participants