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

Add generation_node_name arg to GeneratorRun #1918

Closed
wants to merge 1 commit into from

Conversation

mgarrard
Copy link
Contributor

Summary:
As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Differential Revision: D50276770

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

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

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (421dd10) 94.58% compared to head (a9316ff) 94.59%.

❗ Current head a9316ff differs from pull request most recent head b9c714f. Consider uploading reports for the commit b9c714f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1918   +/-   ##
=======================================
  Coverage   94.58%   94.59%           
=======================================
  Files         459      459           
  Lines       43429    43438    +9     
=======================================
+ Hits        41078    41089   +11     
+ Misses       2351     2349    -2     
Files Coverage Δ
ax/core/generator_run.py 100.00% <100.00%> (+0.67%) ⬆️
ax/core/tests/test_generator_run.py 100.00% <100.00%> (ø)
ax/modelbridge/generation_node.py 98.29% <100.00%> (+0.01%) ⬆️
ax/storage/json_store/encoders.py 97.74% <ø> (ø)
ax/storage/sqa_store/decoder.py 93.61% <ø> (ø)
ax/storage/sqa_store/encoder.py 96.69% <ø> (ø)
ax/storage/sqa_store/sqa_classes.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 19, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Differential Revision: D50276770
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 19, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 20, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 20, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 23, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 23, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 23, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 23, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Oct 23, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

Differential Revision: D50276770
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

Differential Revision: D50276770
mgarrard added a commit to mgarrard/Ax that referenced this pull request Oct 24, 2023
Summary:

As we transition to using GenerationNodes by default in GenerationStrategy, we want to add in a geneartion_node_name argument to GeneratorRun. This arg is analogous to the generation_step_index, but more flexibile.

For backwards compatibility purposes, we aren't replacing generation_step_index at this time. I anticipate, over time we will be able to do so.

While I was here, I also updated the functions with docstrings to abide by our standards :)

Things in the pipeline:
(1) Update other code impacted by this generator run change
(2) Add the transition_to field to transition criterion class
(3) Update the transition criterion class to check on a per node basis, instead of per experiment
(4) add is_complete to generationNode and then use that in generation Strategy for moving forward
(5) [Mby] skip max trial criterion addition if numtrials == -1
(6) add transition criterion to the repr string + some of the other fields that havent made it yet

Reviewed By: ItsMrLin

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in bfccae0.

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