smash.factory.Net#

class smash.factory.Net[source]#

Artificial Neural Network initialization.

Examples

>>> from smash.factory import Net
>>> net = Net()
>>> net
+------------------------------------------------+
| Layer Type  Input/Output Shape  Num Parameters |
+------------------------------------------------+
Total parameters: 0
Trainable parameters: 0
Attributes:
history

A dictionary saving training information.

layers

List of Layer objects defining the graph of the network.

Methods

add(layer, options)

Add layers to the neural network.

copy()

Make a deepcopy of the Net.

set_trainable(trainable)

Method which enables to train or freeze the weights and biases of the network's layers.