Displaying 1 result from an estimated 1 matches for "targetpartitiontraining".
2012 Mar 16
0
How to interpret glmnet lasso error
I get an error when I try to use glmnet to fit a lasso model on some data.
My code:
> lasso <- glmnet(predictorPartitionTrainingM, targetPartitionTraining,
alpha=1)
The error that is returned:
Error in elnet(x, is.sparse, ix, jx, y, weights, offset, type.gaussian, :
NA/NaN/Inf in foreign function call (arg 5)
Some potentially important details:
- 50 predictor variables
- 300 observations
- everthing is numeric
- predictorPartitionTrainingM is a m...