This question already has an answer here:

I'd like to know if, and how, it's possible to actually "see" the algorithm that is powering my random forest model.

I find this hard to explain but let me put it this way.

The model can spit out a predicted probability, but what if I wanted to calculate that predicted probability myself? I would need to know the formula that is being applied. So, is it possible to see the formula that is being used and then apply that manually to reach the same result?

Basically I'm wondering if there's a way to make the random forest "show it's work".



marked as duplicate by Sycorax, mdewey, AdamO, Nick Cox, gung r Nov 21 '16 at 21:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ With any R function you can view the source code by entering the function name into the console (with no brackets) and hitting enter. $\endgroup$ – Ms.Meow Nov 21 '16 at 17:05
  • $\begingroup$ Or a duplicate of this: stats.stackexchange.com/q/72266/78313 $\endgroup$ – Metariat Nov 21 '16 at 17:05

Browse other questions tagged or ask your own question.