Skip to content

Instantly share code, notes, and snippets.

@aribornstein
Created May 20, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aribornstein/a0212fff2a95f6bab13d5455d68d9830 to your computer and use it in GitHub Desktop.
Save aribornstein/a0212fff2a95f6bab13d5455d68d9830 to your computer and use it in GitHub Desktop.
class CustomDataSource(DataSource):
def load_data(self, ...)
# load_data code used during validation, test and predict
if self.validating or self.testing:
# load_data code used during validation or test
else:
# load_data code used during predict
def train_load_data(self, ...)
# load_data code used during training
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment