Let’s delve deeper into the code shown above because this will be seen throughout
the chapter when you classify data points as anomalies or normal. As you can see, this
is based on a special parameter called the threshold. You are simply looking at the error
(difference between actual and predicted) and comparing it to the threshold. First,
calculate the precision and recall for threshold = 10. Figure
138
Let’s also calculate for thresholds = 1, 5, 15. See Figures
4-21b
,
4-21c
, and
4-21d
.
Threshold = 1.0
Do'stlaringiz bilan baham: