Skip to content

Commit

Permalink
Fixing Doc Conf (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
wistuba committed Nov 28, 2022
1 parent ce93579 commit f3e9302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import shutil
import sys

import renate
sys.path.insert(0, os.path.abspath("../src/"))

sys.path.insert(0, os.path.abspath("."))
import renate


def run_apidoc(app):
Expand Down
3 changes: 1 addition & 2 deletions src/renate/data/data_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class RenateDataModule(abc.ABC):
A data module implements two methods for data preparation:
- `prepare_data()` downloads the data to the local machine and unpacks it.
- `setup()` creates pytorch dataset objects that return training, test and (possibly) validation
data.
- `setup()` creates pytorch dataset objects that return training, test and (possibly) validation data.
These two steps are separated to streamline the process when launching multiple training jobs
simultaneously, e.g., for hyperparameter optimization. In this case, `prepare_data()` is only
called once per machine.
Expand Down

0 comments on commit f3e9302

Please sign in to comment.