biglasso icon indicating copy to clipboard operation
biglasso copied to clipboard

Error in calling table(y) on numeric variable

Open SilverStats opened this issue 7 years ago • 0 comments

I hit an error ("unique() applies only to vectors") when trying to run cv.biglasso on a numeric response.

if (fit$family == "binomial" & (min(table(y)) > nfolds)) is not short circuiting when fit$family is gaussian and thus table(y) is being called regardless of family.

Changing & to && should take care of the error.

SilverStats avatar Nov 06 '17 21:11 SilverStats