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

Issue with randomforest #85

Open
ACalleros opened this issue Mar 9, 2021 · 1 comment
Open

Issue with randomforest #85

ACalleros opened this issue Mar 9, 2021 · 1 comment

Comments

@ACalleros
Copy link

ACalleros commented Mar 9, 2021

Hi. I'm trying to model the distribution of an invasive fish. ModleR is using 900 points and 4 predictors. When getting to the RandomForest bit, it stops and returns this warning:

>rf
Remember a variable selection was performed 
 retained variables: wc2.1_30s_bio_2-wc2.1_30s_bio_3-wc2.1_30s_bio_4-srad_mean-tmax 

Pseudoxiphophorus bimaculatus rf run number 1 part. nb. 3
fitting models
Error in sample.int(length(x), size, replace, prob) : 
  cannot take a sample larger than the population when 'replace = FALSE'

How can I fix this?

@saramortara
Copy link
Member

Hi, probably is the case when the presences outnumber the absences, so equalize cannot sample correctly as in issue #33 . We think there is a way of fixing it, and we will let you know

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