Skip to content

Issue with randomforest #85

@ACalleros

Description

@ACalleros

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions