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

Create ExperimentBase template class #3

Open
AditMeh opened this issue Mar 14, 2022 · 0 comments
Open

Create ExperimentBase template class #3

AditMeh opened this issue Mar 14, 2022 · 0 comments

Comments

@AditMeh
Copy link
Owner

AditMeh commented Mar 14, 2022

For each new implementation, I need to copy and paste the visualizer.py and train.py. This seems kind of redundant, especially since the training loop is nearly the exact same for most of the models implemented so far.

I should at least create a parent class with a template train method, which I can pass in methods I write for forward passes and loss computations. This way, I can simply subclass this parent class for each model, to avoid having duplicate train loops.

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

No branches or pull requests

1 participant