APIο
- class deephys.deephys.DatasetActivity(name, dtype, classes, images)ο
- class deephys.deephys.DeephysData(name)ο
- class deephys.deephys.Image(imageID, categoryID, category, data, features, activations)ο
- class deephys.deephys.Layer(layerID, neurons)ο
- class deephys.deephys.Model(name, layers, classification_layer)ο
- Parameters:
- class ModelState(activations)ο
- class deephys.deephys.Neuronο
- deephys.deephys.dataset_activity(name, category_names, neural_activity, model, images, groundtruth, dtype='float32')ο
Prepare test results for Deephys. The order of the images should be consistent with the order of the groundtruth_categories per image and the neural_activity.
- Parameters:
name (
str) β The name of the DatasetActivitycategory_names (
list) β an ordered list of strings representing class namesneural_activity (
Dict[str,Union[list,ndarray]]) β A dictionary with the name of the layers and their neural activity. The neural activity is an ordered array or list of floats [#images,#neurons]. Length of activations must be the same as the number of images and in the same order.model (
Model) β The model structureimages (
Union[list,ndarray]) β An ordered list of image pixel data [#images,#channels,dim1,dim2] or [#images,dim1,dim2] for greyscale. Pixels must be floats within the range 0.0:1.0groundtruth (
Union[List[int],ndarray]) β An ordered list of the ground truth category of each image. The length should be the same as the number of images. Each element should be an integer indicating the index of the category.dtype (
str) β The data type to save activation data as: βfloat32β or βfloat64β. βfloat64β is more precise but results in data files almost twice as large. βfloat64β may also be slower in the app. The input type does not matter, it will get converted to the type in this argument. Default: βfloat32β) Default:"float32"
- Returns:
a formatted data object which may be saved to a file
- Return type:
- deephys.deephys.model(name, layers, classification_layer)ο