-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when setting row.idx #21
Comments
What is |
Sorry, I forgot the line Not sure if this answers your question but
|
I mean, could you provide a reproducible example with some example data so that we can run your code and see the error. |
|
If we run the code step by step after using Specifying |
I used deepcopy to workaround this bug, but this was taking too much memory and the server would sometimes crashes. When I use deepcopy on a big.matrix, a corresponding file is created at "dev/shm" (I tried changing the backingfile to my external hd but wasn't successful). I found that the bigstatsr package makes it easier to deal with these problems (althought I'm not sure if what I'm doing is ok). The code is now something like this:
|
I think you can directly use |
When I use row.idx I get the error
Error in
[<-
(*tmp*
, cv.ind == i, 1:res$nl, value = res$loss) : (subscript) logical subscript too longMaybe this error is related to line 87 being commented?
y <- fit$y # this would cause error if eval.metric == "MAPE"
Code that causes error:
train <- sample(c(T,F), size, c(.5,.5), replace = TRUE)
fit$blasso <- cv.biglasso(X = x, y = y, row.idx = which(train), penalty = "lasso", family = "binomial", nfolds = 10)
If I take "row.idx = which(train)" out it runs without any errors.
The text was updated successfully, but these errors were encountered: