-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for transforming numeric predictions that were normalized #1015
Add support for transforming numeric predictions that were normalized #1015
Conversation
@w4nderlust just marked this ready for review. Summary of changes:
Let me know what you think. If this looks good, I'll add a unit test for the transformation/inverse transformations. |
@w4nderlust your comments were perfect, code looks cleaner. Once I add the unit test, this should finish off the PR. |
@tgaddair we are almost done on this, but before merging I'd first merge your PRs, as this may need to be adapted acordingly. Do you agree? |
@w4nderlust yeah that sounds good. It should be fine to merge #1014 followed by this PR. The other should not conflict. |
This looks good to me now. Let's hold a sec before merging as @tgaddair suggested. In the mean time we could add a test ;) |
Added unit test for numeric transformers. |
Thanks for the feature. We use this code to postprocess numeric:
and that's pretty awkward. Your solution is more robust |
@ifokeev Thank you. Glad the feature is helpful. |
@ifokeev I forgot to ask. In your
This code implies an output feature type that is non-numeric. Would a similar capability be useful in that other feature type? What is the use case around that other feature type? |
Yeah. That's very useful.
As I understand there are still no support for |
The category postprocessing should alreadydo that: |
…redictions_transformations # Conflicts: # ludwig/features/numerical_feature.py
…redictions_transformations # Conflicts: # ludwig/features/numerical_feature.py
Code Pull Requests
Proposed solution for the following situation: If a numerical output feature is 'normalized', e.g., 'zscore' or 'minmax', predictions are returned in the 'normalized' value space instead of the output feature's value space. This PR adds functions to do the inverse transformation on output features that were normalized.