Convolutional Classifier #
The classifier accepts any batchShape and number of spatial axes. Convolution and pooling use the
same vector-valued configuration for signals, images, volumes, and higher-dimensional data.
Configuration for a convolutional classifier over d spatial axes.
- inputChannels : ℕ
Number of channels in each input sample.
Extent of each spatial axis.
- convolution : Convolution.Config d
Convolution applied before activation and pooling.
- pooling : Pooling.Config d
Pooling applied after the convolutional activation.
- classCount : ℕ
Number of classifier logits per sample.
Instances For
def
TorchLean.nn.models.cnn
{d : ℕ}
(config : CNN.Config d)
(batchShape : Shape := [])
:
Builder (Sequential (config.inputShape batchShape) (config.outputShape batchShape))
Build convolution -> activation -> max pool -> flatten -> linear.