loader module¶
-
class
loader.
Loader
(parser, config)[source]¶ Read in HDF5 files from train and test directory and perform some checks to make sure everything is okay.
- Parameters
- parser (argparse object): Command line arguments handled by argparse.
- config (dict): Dictionary of configuration which was made from YAML.
Methods
- Returns
getMax
()- Returns
getMin
()- Returns
- Returns
- Returns
- Returns
- Returns
- Returns
- Returns
- Returns
prepareData
(files[, test])Check the shapes across all data sets to make sure all is good.
readDir
(dir_name)Read all files in a directory.
-
getImageCountsPerFile
()[source]¶ - Returns
- A dict with training filenames as keys and number of images as values.