Open ls320 opened 2 days ago
Hello there :wave:
Maxent tuning is a bit specific and is done through the ENMevaluate function from ENMeval package.
We set up partitions = "randomkfold"
and partition.settings = list(kfolds = 10)
, which explains why you see the message :
Model evaluations with random 10-fold cross validation...
It will apply this random cross-validation over each of your PA x CV datasets. So here you have 5 pseudo-absence datasets x 5 kfold datasets = 25 models to be run, and for which tuning will be computed for each run.
Otherwise, yes, you cannot change by yourself the tuned parameters, which are set to : tune.args = list(rm = seq(0.5, 1, 0.5), fc = c("L"))
. If you want to be more specific in your tuning, please use directly by yourself the ENMevaluate function, and then provide your tuned parameter values to biomod2 functions using the OPT.strategy = "user.defined"
option.
:eyes: I see that you put var.import = 100
, I suggest you to put that to 10 only or it will take waaaaaaaaay too long.
Hope it helps, Maya
Maya, Thank you for your explantion and advice! Does it mean that for each run, a 10 fold cv by ENMevaluate is first applied on the traing folds I set to tune the model? or it is applied on the whole traing+validation folds?
Thanks
Yes, exactly ! It means that for example first for the PA1_RUN1
dataset, it will be divided in 10 fold CV and tuning is applied with that (but see the ENMevaluate function for more details). And so on for each dataset.
Maya
Hello, I am trying to tune Maxent model but not sure how it should be done. In my code below I specifyed a 5-fold cv in BIOMOD_modeling, but the the message said a 10-fold cv is used. I would like to know how is the traing done in this process? Which cv setting is used?
Also I didn't provide the range of model parameters to be tuned but the code can still run. Does it mean the model was not tuned or there is a default setting?
Thank you very much
code
message of BIOMOD_Modeling