Quick question -
I’ve been working with the Anomaly detection on K-means clustering and trying to declare the output value of the Anomaly score ( based on input of three sensor axis features) as a variable,
#if EI_CLASSIFIER_HAS_ANOMALY == 1 ei_printf("anomaly:\t%.3f\n", result.anomaly); #endif
But, the Anomaly value is not in decimal format, rather in Vector(most probably). How can we go ahead declaring the Anomaly score as a variable, converting the vectorial format to a numerical format. If it’s left unconverted, the output for printing the value is -
float value1; // generated code value1 = (float)result.anomaly; ei_printf(value1)
Output - 0
Also, how is the Anomaly being calculated. Do negative values mean that it isn’t an Anomaly?
On the live classification page, Anomaly clusters are being printed on a plane (2D Axis), with any two of sensor data processed features being the axis. So, when it is deployed on the MCU, is it calculated based on three axis clusters ( 3D vectors ) or two axis ( 2D Vectors ).