Prevent LPM to output probabilities 0 or 1.
trainScoresGraph and trainSimilarityGraph no longer crashes in case not enough training data