I’m looking through the ei_classifier_smooth_update() definition (in ei_classifier_smooth.h), as a student is asking about this function. I’d like to make sure I understand what it’s doing.
From what I can tell, the function looks at the previous 10 inferences. If a label has the highest score over
classifier_confidence (e.g. 0.8)
min_readings_same (e.g. 7) out of
n_readings (e.g. 10), it will be returned as the chosen label (otherwise, you’ll get “unknown”).
Am I on the right track?