Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Argument Resolution Refactoring #184

Closed
wants to merge 9 commits into from
Closed

Conversation

justusschock
Copy link
Member

Fixes #180 once it's done.

Tests have not yet been updated. Before doing this, a feedback on the general structure would be nice

@justusschock justusschock added the ready for review Things that need to be reviewed label Aug 21, 2019
@justusschock justusschock requested a review from ORippler as a code owner August 21, 2019 08:05
@justusschock justusschock self-assigned this Aug 21, 2019
Copy link
Member

@mibaumgartner mibaumgartner left a comment

Choose a reason for hiding this comment

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

I reviewed the pytorch experiment and the baseexperiment (most of the comments should apply to the other experiments, too). Really digging the new argument structure, much more intuitive. Added a bit more comment than usual because this is a good opportunity to improve the general interface of delira.

Further considerations include:

  1. Where is the batchsize determined. After some thought, I really liked the idea of you to use the batchsize from the datamanager.

  2. Where is a good point to mention which arguments need to be passed by the parameters object | datamanager | experiment ? (the experiment args are obvious but the parameters and datamangers aren't)

  3. The notebooks should be updated accordingly, too. (This should probably happen after Fix notebooks and trainer indent #182)

  4. Do we want to include typings for the experiment interfaces? (I think this would be the right to do that)

delira/training/backends/torch/experiment.py Outdated Show resolved Hide resolved
delira/training/backends/torch/experiment.py Show resolved Hide resolved
delira/training/backends/torch/experiment.py Show resolved Hide resolved
delira/training/backends/torch/experiment.py Show resolved Hide resolved
delira/training/backends/torch/experiment.py Show resolved Hide resolved
delira/training/backends/torch/experiment.py Outdated Show resolved Hide resolved
@justusschock
Copy link
Member Author

All the changes you requested are making sense to me, so I'll add them later on.

Regarding your considerations:

  1. The batchsize is only determined during initialization of the datamanager, so this does not involve this part (Of course one could use the parameters class to temporarily store this value too).

  2. Probably inside our basic delira tutorial, as well as in the desciption of our BaseExperiment?

  3. We should definitely do this. I would prefer to integrate it into Fix notebooks and trainer indent #182 (after this PR is merged)instead of adding it as a separate PR.

  4. I would not add the typing here, but do it, while we add stub files (and check the whole project's typing)

@mibaumgartner mibaumgartner added in progress Things that are currently developed and removed ready for review Things that need to be reviewed labels Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress Things that are currently developed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Argument Resolution Refactoring
3 participants