I propose returning Int instead of Double, in order to accommodate multi-class classification. Just pushed that change to my fork.