Skip to content

Learning Blocks

Editing the neural network

Add, remove and reorder layers of a Motion learning block in the architecture editor.

Try it in Studio
On this page

Goal

By the end of this page you can change the layers of a Motion model and train it.

The Architecture section on the training page is available for Classification, 1D Convolutional (CNN), 2D Convolutional (CNN) and Regression.

The layers you can use

LayerWhat it does
DenseFully connected layer for learning relationships between features
DropoutRandomly switches off part of the connections during training, to reduce overfitting
Conv1DLearns local patterns along a sequence, such as raw time-series
MaxPooling1DShortens the sequence while keeping the strongest features
GlobalAveragePooling1DTurns the sequence into one value per filter before the dense layers
Conv2DLearns patterns across a two-dimensional grid
MaxPooling2DShrinks the grid while keeping important local features
ReshapeChanges the shape of the data so the next layer can use it
FlattenTurns a grid into a single list for dense layers

Dense and convolution layers use the relu, elu or selu activation.

Steps

  1. Open the learning block in Studio's left menu (for example 1D Convolutional (CNN)).
  2. In Architecture, check the layer list. For the convolutional blocks, the Input line shows the shape of one window, e.g. [100, 3] (window size × axes).
  3. Select Add layer and choose a layer. New layers are added at the end.
  4. Use the arrows to move a layer up or down, and the remove button to delete it.
  5. Change a layer's numbers (filters, kernel size, units, dropout rate) in its row.
  6. Select Save architecture. Studio checks that the layers fit together; if not, it shows Fix before saving with the reason.
  7. Select Start training. Studio also saves the architecture automatically before training starts.

You never add the output layer yourself: Studio always adds one output per label (or one number for Regression) at the end.

Result

The model trains with your layers. Compare its evaluation results with the default to see if your change helped.

What next?