Skip to content

Reproducibility in cocktail #204

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

Merged

Conversation

ravinkohli
Copy link
Contributor

This PR fixes the reproducibility issues in some of the cocktail ingredients.

Components changed-

  1. GridCutOutTrainer
  2. GridCutMixTrainer
  3. RowCutOutTrainer
  4. RowCutMixTrainer

Copy link

@ArlindKadra ArlindKadra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :), thanks for the PR.

def __init__(self) -> None:
super(autoPyTorchSetupComponent, self).__init__()
def __init__(self, random_state: Optional[np.random.RandomState] = None) -> None:
super(autoPyTorchSetupComponent, self).__init__(random_state=random_state)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah interesting, did we miss this when we made the changes in development ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think it affects the code at all.

@franchuterivera
Copy link
Contributor

Should we pass the see here?

@ArlindKadra
Copy link

Should we pass the see here?

yes, nice find, without that one, we would be using seed 42 if I am not mistaken

@ravinkohli
Copy link
Contributor Author

Should we pass the see here?

Hey thanks for the comment. I actually didn't rebase before pushing as I had already pushed a PR for this.

@ArlindKadra ArlindKadra merged commit ad60a0a into refactor_development_regularization_cocktails May 11, 2021
github-actions bot pushed a commit that referenced this pull request May 11, 2021
@ravinkohli ravinkohli deleted the fix-randomness branch October 22, 2021 09:36
ravinkohli added a commit that referenced this pull request Dec 8, 2021
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Dec 8, 2021
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Dec 21, 2021
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Jan 24, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Jan 28, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Feb 28, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Feb 28, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Mar 9, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit to ravinkohli/Auto-PyTorch that referenced this pull request Apr 12, 2022
* Fix randomness in cocktail ingredients

* Fix flake
ravinkohli added a commit that referenced this pull request Jul 26, 2022
* Fix randomness in cocktail ingredients

* Fix flake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants