Skip to content
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

Replace usage of surrogate_specs with surrogate_spec #2959

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
This is a clean up diff that replaces deprecated surrogate_specs with newly introduced surrogate_spec across fbcode (except for places where it is needed for testing backwards compatibility). After this change, surrogate related Keys are no longer needed, so those are also removed.

Also adds a _extract_surrogate_spec_from_surrogate_specs helper to convert single element surrogate_specs in model_kwargs to surrogate_spec during de-serialization. This was a way to fix some of the internal BC tests while adding another layer of BC protection.

Differential Revision: D64877651

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Oct 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.

Project coverage is 95.64%. Comparing base (5e115f8) to head (62d302a).

Files with missing lines Patch % Lines
ax/storage/json_store/decoder.py 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2959      +/-   ##
==========================================
- Coverage   95.65%   95.64%   -0.01%     
==========================================
  Files         486      486              
  Lines       48827    48835       +8     
==========================================
+ Hits        46704    46708       +4     
- Misses       2123     2127       +4     

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Oct 24, 2024
Summary:

This is a clean up diff that replaces deprecated `surrogate_specs` with newly introduced `surrogate_spec` across fbcode (except for places where it is needed for testing backwards compatibility). After this change, surrogate related `Keys` are no longer needed, so those are also removed.

Also adds a `_extract_surrogate_spec_from_surrogate_specs` helper to convert single element `surrogate_specs` in `model_kwargs` to `surrogate_spec` during de-serialization. This was a way to fix some of the internal BC tests while adding another layer of BC protection.

Differential Revision: D64877651
@facebook-github-bot
Copy link
Contributor

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Oct 25, 2024
Summary:

This is a clean up diff that replaces deprecated `surrogate_specs` with newly introduced `surrogate_spec` across fbcode (except for places where it is needed for testing backwards compatibility). After this change, surrogate related `Keys` are no longer needed, so those are also removed.

Also adds a `_extract_surrogate_spec_from_surrogate_specs` helper to convert single element `surrogate_specs` in `model_kwargs` to `surrogate_spec` during de-serialization. This was a way to fix some of the internal BC tests while adding another layer of BC protection.

Reviewed By: sdaulton

Differential Revision: D64877651
@facebook-github-bot
Copy link
Contributor

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

Summary:

This is a clean up diff that replaces deprecated `surrogate_specs` with newly introduced `surrogate_spec` across fbcode (except for places where it is needed for testing backwards compatibility). After this change, surrogate related `Keys` are no longer needed, so those are also removed.

Also adds a `_extract_surrogate_spec_from_surrogate_specs` helper to convert single element `surrogate_specs` in `model_kwargs` to `surrogate_spec` during de-serialization. This was a way to fix some of the internal BC tests while adding another layer of BC protection.

Reviewed By: sdaulton

Differential Revision: D64877651
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c3014fc.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants