3.4. Understanding Config
Every run is driven by one YAML file with up to six sections. Keys you leave out use their
defaults, so testing: {} and compilation: {} are valid as written.
Section |
Purpose |
|---|---|
|
|
|
|
|
Windowing and feature extraction: a preset ( |
|
|
|
Evaluation of the trained model |
|
Compilation with TI’s Neural Network Compiler ( |
3.4.1. Minimal Config
common:
task_type: generic_timeseries_classification
target_device: F28P55
dataset:
dataset_name: generic_timeseries_classification
data_processing_feature_extraction:
feature_extraction_name: Generic_1024Input_FFTBIN_64Feature_8Frame
variables: 1
training:
model_name: CLS_1k_NPU
training_epochs: 20
testing: {}
compilation: {}
3.4.2. Common Keys
common.target_device: the MCU to compile for, e.g.F28P55,MSPM0G5187,F29H85,CC2755,AM263common.projects_path: wheredata/projectsis created (default./data/projects)training.early_stoppingandtraining.early_stopping_patience: stop when validation stops improvingtraining.num_gpus: 0 for CPU, 1 or more for CUDA (or MPS on Apple Silicon)<stage>.enable: setFalseto skip a stage (for examplecompilation: {enable: False})
The full walkthrough (4-step recipe, feature extraction presets, custom transforms, useful knobs and pitfalls) is in the How to Create a ModelZoo Config YAML. There is also an interactive slide deck.