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

How to explain the plot 'Distribution of R-squared in randomized model' from the rfUtilities package? #10

Open
nikosGeography opened this issue Apr 6, 2023 · 0 comments

Comments

@nikosGeography
Copy link

I apologize in advance if the question is not suitable for posting here. I am using the package to perform a Random Forest (RF) regression task. One of the functions to validate the model is the rf.significance. When I plot the results of the functions I get this: plot

Rplot

Can you help me understand and interpret this plot? For example, what's on the y-axis, should the blue area be less wide or not, and why? Should the red dash line be closer to the black one or not, and why? In general, what does this plot says about the RF model?

library(randomForest)
library(rfUtilities)

data(airquality)
airquality <- na.omit(airquality)
( rf.regress <- rf.modelSel(airquality[,2:6], airquality[,1], imp.scale="se") )

# To use parameters from selected model
vars <- rf.regress$selvars
( rf.fit <- randomForest(x=airquality[,vars], y=airquality[,1]) )

set.seed(123)
( rf.perm <- rf.significance(rf.fit, airquality[,2:6], nperm=99, ntree=501) )
plot(rf.perm)
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