# `ann`

Artificial Neural Networks for CapyMOA.

## Classes

| [`LeNet5`](capymoa.core.torch.ann.LeNet5.md#capymoa.core.torch.ann.LeNet5)         | LeNet-5 [[Lecun1998]](capymoa.core.torch.ann.LeNet5.md#lecun1998) convolutional neural network for 28x28 grayscale images.   |
|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| [`Perceptron`](capymoa.core.torch.ann.Perceptron.md#capymoa.core.torch.ann.Perceptron) | A simple feedforward neural network with one hidden layer.                                                                              |

## Functions

| [`resnet20_32x32`](#capymoa.core.torch.ann.resnet20_32x32)   | A small ResNet20 (0.27M parameters) variant for 32x32 images.   |
|-------------------------------------------------------------------|-----------------------------------------------------------------|
| [`resnet32_32x32`](#capymoa.core.torch.ann.resnet32_32x32)   | A small ResNet32 (0.46M parameters) variant for 32x32 images.   |
| [`resnet44_32x32`](#capymoa.core.torch.ann.resnet44_32x32)   | A small ResNet44 (0.66M parameters) variant for 32x32 images.   |
| [`resnet56_32x32`](#capymoa.core.torch.ann.resnet56_32x32)   | A small ResNet56 (0.85M parameters) variant for 32x32 images.   |
| [`resnet110_32x32`](#capymoa.core.torch.ann.resnet110_32x32)  | A small ResNet110 (1.7M parameters) variant for 32x32 images.   |
| [`resnet1202_32x32`](#capymoa.core.torch.ann.resnet1202_32x32) | A small ResNet1202 (19.4M parameters) variant for 32x32 images. |

### capymoa.core.torch.ann.resnet20_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L157)

A small ResNet20 (0.27M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).

### capymoa.core.torch.ann.resnet32_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L166)

A small ResNet32 (0.46M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).

### capymoa.core.torch.ann.resnet44_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L175)

A small ResNet44 (0.66M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).

### capymoa.core.torch.ann.resnet56_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L184)

A small ResNet56 (0.85M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).

### capymoa.core.torch.ann.resnet110_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L193)

A small ResNet110 (1.7M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).

### capymoa.core.torch.ann.resnet1202_32x32(num_classes: [int](https://docs.python.org/3/builtins/functions.html#int))[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/core/torch/ann/_resnet.py#L202)

A small ResNet1202 (19.4M parameters) variant for 32x32 images.

For more information visit the [source implementation](https://github.com/akamaster/pytorch_resnet_cifar10).
