# Train on device (ESP-IDF) Trains SEFR on the ESP32 from the Iris dataset stored in flash, then tests it on held-out samples, with and without the LDA refining pass. ```sh idf.py set-target esp32 idf.py build flash monitor ``` To build it from a clone of this repository instead, the clone's folder must be named `sefr`, because ESP-IDF names a local component after its folder.
To create a project from this example, run:
idf.py create-project-from-example "hamidkm9/sefr=1.0.1:train_on_device"