[Biomod-commits] Error while running Models

Ana rrasterr at gmail.com
Mon Feb 13 16:56:24 CET 2012


Hi!

I am having this error message when running Models: *Error in rep(0,
net$nunits + 1L) : invalid 'times' argument*

Models(GLM = T, TypeGLM = "simple", Test = "AIC", GBM = T, No.trees = 2000,
GAM = T,
Spline = 3, CTA = T, CV.tree = 50, ANN = T, CV.ann = 2, SRE = T,
MARS = T, RF = T, NbRunEval = 3, DataSplit = 80, Yweights=NULL, Roc = T,
Optimized.Threshold.Roc = T,
Kappa = T, TSS=T, KeepPredIndependent = T, VarImport=5, NbRepPA=2,
strategy="circles",
coor=dataset[,8:9], distance=2, nb.absences=100)



------------------------------
-----
Modelling summary
*-----------------------------------
Number of species modelled :            1
Species 01

numerical variables :                   var1, var2, var3, var4, var5, var6


number of evaluation repetitions :      3
number of pseudo-absences runs :        2
models selected :                       ANN, CTA, GAM, GBM, GLM, MARS, RF,
SRE
total number of model runs :            64
-----------------------------------


#####                    Species 01                     #####
#####              pseudo-absence run 1                 #####
Model=Artificial Neural Network
         2 Fold Cross Validation + 3 Repetitions
Calibration and evaluation phase: Nb of cross-validations:  3
**Error in rep(0, net$nunits + 1L) : invalid 'times' argument
*

I had this problem before, I solved it but I didn't keep a track of the
change I made to solve it.

My data is in data.frame format, the species columns has only presence
absence ( 1 or 0) and there are no NA values.
My variables have decimal numbers.

By initial state is the following:
Initial.State(Response = dataset[,7],
        Explanatory = dataset[,1:6],
        IndependentResponse = NULL,
        IndependentExplanatory = NULL,
        sp.name="Species 01")


Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/biomod-commits/attachments/20120213/9a3ceda3/attachment.html>


More information about the Biomod-commits mailing list