Skip to content

Learning Blocks

Choosing a learning block

Which of the four Motion learning blocks to pick, and which processing block to pair it with.

Try it in Studio
On this page

The idea in one minute

The learning block is the neural network that turns features into a prediction. You add it on the Create impulse page with Add a learning block. Motion projects offer four:

Learning block in StudioPredictsGood partner block
ClassificationA label, e.g. waveSpectral Analysis or Flatten
1D Convolutional (CNN)A labelRaw Data
2D Convolutional (CNN)A labelRaw Data
RegressionA number, e.g. a speedSpectral Analysis or Flatten

A simple decision guide

  1. Do you want a number instead of a label? Use Regression. Your label names must be numbers, such as 0.5 or 12.
  2. Did you choose Spectral Analysis or Flatten? Use Classification. These blocks already turn each window into a short list of features, which a small dense network handles well.
  3. Did you choose Raw Data? Try 1D Convolutional (CNN). It looks for patterns that move along time, like the shape of a gesture.
  4. Want to experiment? 2D Convolutional (CNN) treats the window as a small picture of time × axes.

Where you use this in PetalEdge