Skip to content
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

SewageModel/src/models/models.R error in line 54 #13

Open
ayacha opened this issue Jan 26, 2015 · 2 comments
Open

SewageModel/src/models/models.R error in line 54 #13

ayacha opened this issue Jan 26, 2015 · 2 comments

Comments

@ayacha
Copy link

ayacha commented Jan 26, 2015

Hi @zscore
Should the code in models.R work fine? Am I missing anything?

Thanks.

@sebhtml
Copy link
Member

sebhtml commented Jan 26, 2015

$ make model
...

Warning messages:
1: glm.fit: algorithm did not converge
2: glm.fit: fitted probabilities numerically 0 or 1 occurred
Error in as.matrix(cbind2(1, newx) %% nbeta) :
error in evaluating the argument 'x' in selecting a method for function 'as.matrix': Error in t(.Call(Csparse_dense_crossprod, y, t(x))) :
error in evaluating the argument 'x' in selecting a method for function 't': Error: invalid class 'NA' to dup_mMatrix_as_dgeMatrix
Calls: %
% -> %% -> t
Calls: cv.glmnet ... predict.lognet -> NextMethod -> predict.glmnet -> as.matrix
Execution halted
make: *
* [model] Error 1

The problem seems to be that some fields contain NA (missing data).

@ayacha
Copy link
Author

ayacha commented Jan 27, 2015

Same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants