Sweep score calculation for tp and fp
szympie opened this issue · 1 comments
szympie commented
During calculation of sweep score, if the anomalyPoint is in the anomaly windows you divide by windowWidth (https://github.com/numenta/NAB/blob/master/nab/sweeper.py#L176) and if the anomalyPoint is outside the anomaly window, you divide by windowWidth - 1 (https://github.com/numenta/NAB/blob/master/nab/sweeper.py#L188) is there any reason for it or is it a bug?
markNZed commented
I agree that it seems strange to change the window width. In the window the position formula is
-(curWindowRightIndex - i + 1) / curWindowWidth
After the window the formula is
abs(prevWindowRightIndex - i) / float(prevWindowWidth - 1)
I doubt it makes an important difference to the scores.