open-city / water

Projects for the water team
3 stars 2 forks source link

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

Open ayacha opened 9 years ago

ayacha commented 9 years ago

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

Thanks.

sebhtml commented 9 years ago

$ 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_asdgeMatrix 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 commented 9 years ago

Same error