SingleCNN#

class ctlearn.core.model.SingleCNN(*args: t.Any, **kwargs: t.Any)[source]#

Bases: CTLearnModel

SingleCNN is the base class of a simple convolutional neural network model.

This class extends the functionality of CTLearnModel by implementing methods to build a simple convolutional neural network model.

Attributes Summary

architecture

List of dicts containing the number of filters, kernel sizes and number of repetition.

batchnorm

Apply batch normalization to the convolutional layers.

bottleneck_filters

Number of filters in the bottleneck layer.

name

Name of the model backbone.

pooling_parameters

Parameters for the max or average pooling layers.

pooling_type

Type of pooling to apply to the convolutional layers with pooling_parameters.

Attributes Documentation

architecture#

List of dicts containing the number of filters, kernel sizes and number of repetition. E.g. [{'filters': 12, 'kernel_size': 3, 'number': 1}, ...].

batchnorm#

Apply batch normalization to the convolutional layers.

bottleneck_filters#

Number of filters in the bottleneck layer.

name#

Name of the model backbone.

pooling_parameters#

Parameters for the max or average pooling layers. E.g. {'size': 2, 'strides': 2}.

pooling_type#

Type of pooling to apply to the convolutional layers with pooling_parameters.