randomForest2Rules          package:rattle          R Documentation

_G_e_n_e_r_a_t_e _a_c_c_e_s_s_i_b_l_e _d_a_t_a _s_t_r_u_c_t_u_r_e _o_f _a _r_a_n_d_o_m_F_o_r_e_s_t _m_o_d_e_l

_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. 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:

     randomForest2Rules(model, models=NULL)

_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
          converted.

_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:

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

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

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

