pydnn.data module¶
- class pydnn.data.DirectoryLabeledImageSet(base_dir, dtype='float32')¶
Bases: object
Builds training data from a directory where each subdirectory is the name of a class, and contains all the examples of images that class.
Parameters: - base_dir (string) – the directory containing the class directories
- dtype (string) – the data type to use for the ndarray containing the labels
- build(num_images=None)¶
- get_files(num_files=None)¶
- get_labels()¶
- get_random_file(rng)¶