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

Ensure new arm names do not match a different name on the experiment #2732

Closed
wants to merge 1 commit into from

Conversation

mgrange1998
Copy link
Contributor

Summary:

In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists

Differential Revision: D62130255

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 3, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Sep 3, 2024
…acebook#2732)

Summary:
Pull Request resolved: facebook#2732

>
In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists.

A "replace" flag is also added, to maintain the existing functionality where a conflicting arm by the same name existed.
=> In "clone_with", desired functionality is to replace existing status quo arm with new status quo arm.

Differential Revision: D62130255
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.47%. Comparing base (98c2140) to head (35a2ee3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2732   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files         489      489           
  Lines       47838    47861   +23     
=======================================
+ Hits        45671    45694   +23     
  Misses       2167     2167           

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

@facebook-github-bot
Copy link
Contributor

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

mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Sep 3, 2024
…acebook#2732)

Summary:
Pull Request resolved: facebook#2732

>
In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists.

## Replacement support

 In "clone_with", desired functionality is to replace existing status quo arm with new status quo arm.

A "replace" flag is also added, so that a signature conflict of same-named arms  will not be errored out.

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

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

mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Sep 3, 2024
…acebook#2732)

Summary:
Pull Request resolved: facebook#2732

>
In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists.

## Replacement support

 In "clone_with", desired functionality is to replace existing status quo arm with new status quo arm.

A "replace" flag is also added, so that a signature conflict of same-named arms  will not be errored out.

Reviewed By: mpolson64

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

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

mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Sep 3, 2024
…acebook#2732)

Summary:
Pull Request resolved: facebook#2732

>
In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists.

## Replacement support

 In "clone_with", desired functionality is to replace existing status quo arm with new status quo arm.

A "replace" flag is also added, so that a signature conflict of same-named arms  will not be errored out.

Reviewed By: mpolson64

Differential Revision: D62130255
…acebook#2732)

Summary:
Pull Request resolved: facebook#2732

>
In Experiment._name_and_store_arm_if_not_exists (pointer)`, ensure that no other arm with a different signature (but same name) exists on the experiment before adding.

This change checks for signature conflict by arm name in Experiment._name_and_store_arm_if_not_exists.

## Replacement support

 In "clone_with", desired functionality is to replace existing status quo arm with new status quo arm.

A "replace" flag is also added, so that a signature conflict of same-named arms  will not be errored out.

Reviewed By: mpolson64

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 76d1db6.

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