-
Notifications
You must be signed in to change notification settings - Fork 21
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 in BIOMOD_ModelingOptions - fail to change the parameter of the biomod2 inner model (RF) #311
Comments
Dear @Jinyu8579, |
Dear Rémi, Thanks for your feedback. We have updated to current github version with devtools::install_github('biomodhub/biomod2'), and it works well now. However, we ran into another roadblock with the remaining code:
We have found similar error posted on Stack Exchange (https://stats.stackexchange.com/questions/519102/random-forest-error-type-of-predictors-in-new-data-do-not-match-training-set). The solution they reported should be as following: Thus, our roadblock may also be settled by setting 'type = "response"'. But we have not found the relevant argument in either BIOMOD_ModelingOptions or BIOMOD_Modeling. ps. Code used to get the error
Bests, Jinyu |
Dear Jinyu, Additionally, I see that you had the following error: Best, |
Dear Rémi, Thanks for your quick feedback. We have updated to current github version with devtools::install_github('biomodhub/biomod2'), and it has been working well these days. We initially wanted to treat the binary (1-presence/0-background) data as a continuous response variable in order to end up with a continuous measure of suitability. Thus, we planned to run a regression model, and set "do.classif = FALSE" for the parameter of the RF model when running the function "BIOMOD_ModelingOptions". We are now facing the roadblock of overfitting, and try to solve the problem by adjusting the nodesize and maxnodes parameters of randomForest, as you suggested at #304 #261 #247 . Thanks again for your help. Best, Jinyu |
Please make sure to close the issue once you consider it as solved
Please use screenshots only when you cannot copy-paste the object, e.g. for figures or maps
Error and context
We wanted to use the biomod2 inner model random forest to perform species distribution modeling on an insect species, based on 300 presence points and 100 background points. We treated the binary (1-presence/0-background) data as a continuous response variable in order to end up with a continuous measure of suitability. Thus, we ran a regression model, and set "do.classif = FALSE" for the parameter of the RF model when running the function "BIOMOD_ModelingOptions". However, we did not see the change of the parameter, it is still the default setting (i.e., do.classif = TRUE).
Code used to get the error
Please add the code used to reproduce your error, starting with
BIOMOD_FormatingData
up to the function that bugged. Please add as well :show
for the different object used or generated.Environment Information
Please paste the output of
sessionInfo()
in your current R session below.Additional information
If you have any additional information or context you can add it here.
The text was updated successfully, but these errors were encountered: