Anomaly detection


#1

In anomaly detection while calculating “mean” value it always throws an error
StatisticalError: mean must have one data point

Mn=statistics.mean(history_data)

what should i do now?


#2

@onlynavv Please share a screenshot of the code and error so that we can help you resolve this issue.


#3

once check the loop where are collecting the data points ,you may be passing the empty list.
We cant calculate mean of a empty list.