I'm getting a weird error when training a glmnet regression.
invalid class "dgCMatrix" object: length(Dimnames[[2]])' must match Dim[2]
It only happens occasionally, and perhaps only under larger datasets.
I'm not sure whether it's consistent it happens given a certain dataset.
Any clues?