Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary:
In order to use model predicted status quo values, we first need to have a fitted model. This prevents transforming optimization config in Adapter._transform_data and using it when instantiating the subsequent transforms, which we want to do to avoid the need to separately derelativize the opt config in transforms like Winsorize & BilogY (WIP D81597506).

This diff changes the behavior of Derelativize.transform_optimization_config to be no-op rather than error out when a fitted model is not yet available. This will leave the optimization_config unchanged in Adapter._transform_data and untransform it using the model predictions in Adapter.gen.

Reviewed By: dme65

Differential Revision: D81624306

…a fitted model is not yet available

Summary:
In order to use model predicted status quo values, we first need to have a fitted model. This prevents transforming optimization config in `Adapter._transform_data` and using it when instantiating the subsequent transforms, which we want to do to avoid the need to separately derelativize the opt config in transforms like `Winsorize` & `BilogY` (WIP D81597506).

This diff changes the behavior of `Derelativize.transform_optimization_config` to be no-op rather than error out when a fitted model is not yet available. This will leave the `optimization_config` unchanged in `Adapter._transform_data` and untransform it using the model predictions in `Adapter.gen`.

Reviewed By: dme65

Differential Revision: D81624306
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 4, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81624306

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.13%. Comparing base (081bc76) to head (a5e764f).

Files with missing lines Patch % Lines
ax/adapter/transforms/derelativize.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4246   +/-   ##
=======================================
  Coverage   96.12%   96.13%           
=======================================
  Files         566      566           
  Lines       57639    57658   +19     
=======================================
+ Hits        55408    55427   +19     
  Misses       2231     2231           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@saitcakmak
Copy link
Contributor Author

abandoned

@saitcakmak saitcakmak closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants