Weka_control              package:RWeka              R Documentation

_C_o_n_t_r_o_l _W_e_k_a _O_p_t_i_o_n_s

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

     Set control options for Weka learners.

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

     Weka_control(...)

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

     ...: named arguments of control options, see the details and
          examples.

_D_e_t_a_i_l_s:

     The available options for a Weka learner, 'foo()' say, can be
     queried by 'WOW(foo)' and then conveniently set by
     'Weka_control()'.  See below for an example.

     One can use lists for options taking multiple arguments, see the
     documentation for 'SMO' for an example.

_V_a_l_u_e:

     A list of class 'Weka_control' which can be coerced to 'character'
     for passing it to Weka.

_S_e_e _A_l_s_o:

     'WOW'

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

     ## Query J4.8 options:
     WOW("J48")
     ## Learn J4.8 tree on iris data with default settings:
     J48(Species ~ ., data = iris)
     ## Learn J4.8 tree with reduced error pruning (-R) and 
     ## minimum number of instances set to 5 (-M 5):
     J48(Species ~ ., data = iris, control = Weka_control(R = TRUE, M = 5))

