Learning Blocks
Editing the neural network
Add, remove and reorder layers of a Motion learning block in the architecture editor.
Try it in StudioOn 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
| Layer | What it does |
|---|---|
| Dense | Fully connected layer for learning relationships between features |
| Dropout | Randomly switches off part of the connections during training, to reduce overfitting |
| Conv1D | Learns local patterns along a sequence, such as raw time-series |
| MaxPooling1D | Shortens the sequence while keeping the strongest features |
| GlobalAveragePooling1D | Turns the sequence into one value per filter before the dense layers |
| Conv2D | Learns patterns across a two-dimensional grid |
| MaxPooling2D | Shrinks the grid while keeping important local features |
| Reshape | Changes the shape of the data so the next layer can use it |
| Flatten | Turns a grid into a single list for dense layers |
Dense and convolution layers use the relu, elu or selu activation.
Steps
- Open the learning block in Studio's left menu (for example 1D Convolutional (CNN)).
- 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). - Select Add layer and choose a layer. New layers are added at the end.
- Use the arrows to move a layer up or down, and the remove button to delete it.
- Change a layer's numbers (filters, kernel size, units, dropout rate) in its row.
- Select Save architecture. Studio checks that the layers fit together; if not, it shows Fix before saving with the reason.
- 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.