NicolasHug/Surprise

Potential numerical instability in pearson sim

Open

#216 opened on Oct 15, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (6,098 stars) (1,043 forks)batch import
help wanted

Description

Following #214, there might be some numerical instability in pearson similarity computation, probably caused by the sqrt function receiving either negative values, NaN or infinity.

I couldn't reproduce the issue myself.

Contributor guide