printRandomForests          package:rattle          R Documentation

_P_r_i_n_t _a _r_e_p_r_e_s_e_n_t_t_a_i_o_n _o_f _t_h_e _R_a_n_d_o_m _F_o_r_e_s_t _m_o_d_e_l_s _t_o _t_h_e _c_o_n_s_o_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     A randomForest model, by default, consists of 500 decision trees.
     This function walks through each tree and generates a set of rules
     which are printed to the console. This takes a considerable amount
     of time and is provided for users to access the actual model, but
     it is not yet used within the Rattle GUI. It may be used to
     display the output of the RF (but it takes longer to generate than
     the model itself!). Or it might only be used on export to PMML or
     SQL.

_U_s_a_g_e:

     printRandomForests(model, models=NULL, include.class=NULL, format="")

_A_r_g_u_m_e_n_t_s:

   model: a randomForest model.

  models: a list of integers limiting the models in MODEL that are
          displayed.

include.class: limit the output to the specific class.

  format: possible values are "VB".

_A_u_t_h_o_r(_s):

     Graham.Williams@togaware.com

_R_e_f_e_r_e_n_c_e_s:

     Package home page: <URL: http://rattle.togaware.com>

_E_x_a_m_p_l_e_s:

     ## Display a ruleset for a specific model amongst the 500.
     ## Not run: printRandomForests(rfmodel, 5)

     ## Display a ruleset for specific models amongst the 500.
     ## Not run: printRandomForests(rfmodel, c(5,10,15))

     ## Display a ruleset for each of the 500 models.
     ## Not run: printRandomForests(rfmodel)

