3. Getting Started
This section takes you from a fresh install to a trained, quantized and compiled model, and explains what every file in the run folder means.
Contents
- 3.1. Quickstart
- 3.2. First Example
- 3.3. Running Examples
- 3.4. Understanding Config
- 3.5. How to Create a ModelZoo Config YAML
- 3.6. Understanding the Run Output
- 3.6.1. What a Run Produces
- 3.6.2. Float vs. Quantized Model
- 3.6.3. Golden Vectors: user_input_config.h
- 3.6.4. Golden Vectors: test_vector.c
- 3.6.5. PCA Graphs: Are Your Features Separable?
- 3.6.6. Post-Training Analysis: Classification
- 3.6.7. Post-Training Analysis: Other Tasks
- 3.6.8. Compilation Output: What Goes on the Device
- 3.6.9. Next Step
3.7. 5-Minute Quickstart
After Installation, from the tinyml-modelzoo folder:
./run_tinyml_modelzoo.sh examples/generic_timeseries_classification/config.yaml
run_tinyml_modelzoo.bat examples\generic_timeseries_classification\config.yaml
./run_tinyml_modelzoo.ps1 examples/generic_timeseries_classification/config.yaml
This runs the “Hello World” example: it downloads a waveform dataset (sine, square,
sawtooth), extracts FFT features, trains a ~1K-parameter model (CLS_1k_NPU),
quantizes it and compiles it for the F28P55. Output is written to
./data/projects/generic_timeseries_classification/run/<date-time>/CLS_1k_NPU/.
Quickstart
Run the hello world example and find the results.
First Example
Walk through DC arc fault detection end to end.
Understanding the Run Output
What every file in a run folder is and which one to deploy.
Config YAML Guide
Create or adapt a config for your data and device.