peal.teachers.virelay_teacher.create_attribution_database¶
- peal.teachers.virelay_teacher.create_attribution_database(attribution_database_file_path, attribution_shape, num_classes, number_of_samples)[source]¶
Creates an attribution database file
- Parameters:
attribution_database_file_path (
str) – Path of the HDF5 file to create (overwritten).attribution_shape (
tuple) – Shape of one attribution (without the batch axis).num_classes (
int) – Width of thepredictiondataset.number_of_samples (
int) – Length of theattribution,predictionandlabeldatasets.
- Returns:
The open file with empty float32
attributionandpredictiondatasets and a uint16labeldataset.- Return type:
h5py.File