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

2nd try: Adding the ability to pass dataloader related kwargs in SNPE, SNRE and SNLE #445

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

narendramukherjee
Copy link
Contributor

Added dataloader_kwargs parameter to snle_a, snre_a, snre_b and snpe_c. These dataloader_kwargs are used to create the train and val dataloaders in snpe_base, snre_base and snle_base

@janfb I closed the previous MR, merged the current sbi main into my fork, and put the dataloader_kwargs related changes. I have avoided any formatting changes (that caused problems last time) - let me know if this looks ok :)

Closing #415

…c. These dataloader_kwargs are used to create the train and val dataloaders in snpe_base, snre_base and snle_base
Copy link
Contributor

@janfb janfb 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 a lot for taking care of this!

@janfb
Copy link
Contributor

janfb commented Mar 3, 2021

It now has a lot of code repetition in the inference classes, so we might think about refactoring and moving the data loader generation to the base class. But this is for another PR, so overall, it is good to go!

@janfb janfb merged commit a958751 into sbi-dev:main Mar 3, 2021
@janfb janfb mentioned this pull request Mar 4, 2021
1 task
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.

2 participants