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

superClass ranger probability bug #69

Open
ailich opened this issue Nov 10, 2020 · 0 comments
Open

superClass ranger probability bug #69

ailich opened this issue Nov 10, 2020 · 0 comments

Comments

@ailich
Copy link

ailich commented Nov 10, 2020

I'm using the latest version of RStoolbox and R 3.6.3. When using superClass with model= "ranger", type="prob", and predict=TRUE, I sometimes get layers for each class that just contain 0 or 1 indicating whether or not a pixel was classified as that class rather than the probability. If I follow up and repredict using the fitted superclass object and the same data using predict.superClass, I get maps of the probabilities, so it seems to be an issue with the prediction within superClass rather than the model fitting. It doesn't happen every time, but it seems to be more common when I use beginCluster. I am setting the random seed so results should be consistent across runs.

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

1 participant