AndriSignorell / DescTools

Tools for Descriptive Statistics and Exploratory Data Analysis
http://andrisignorell.github.io/DescTools/
82 stars 18 forks source link

BrierScore doesn't check argument validity #149

Open dillonplunkett opened 4 months ago

dillonplunkett commented 4 months ago

If BrierScore is called with the arguments flipped (predictions before responses), it will return reasonable looking, but incorrect results. Responses should always be either 0 or 1, so this could be prevented by checking the purported responses.

AndriSignorell commented 4 months ago

Good point, I will add a suitable check.