gninatorch.setup module
Utility functions to setup training and inference.
- gninatorch.setup.setup_example_provider(examples_file, args: Namespace, training: bool = True) ExampleProvider[source]
Setup
molgrid.ExampleProviderbased on command line arguments.- Parameters:
examples_file (str) – File with examples (.types file)
args (argparse.Namespace) – Command line arguments
train (bool) – Flag to distinguis between training and inference
- Returns:
Initialized
molgrid.ExampleProvider- Return type:
molgrid.ExampleProvider
Notes
For inference (
training=False), the data set is not balanced, stratified, nor shuffled.