predict_Weka_clusterer         package:RWeka         R Documentation

_C_l_a_s_s _P_r_e_d_i_c_t_i_o_n_s _f_o_r _R/_W_e_k_a _C_l_u_s_t_e_r_e_r_s

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

     Predict class ids or memberships based on fitted Weka clusterers.

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

     ## S3 method for class 'Weka_clusterer':
     predict(object, newdata = NULL,
             type = c("class_ids", "memberships"), ...)

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

  object: an object of class inheriting from 'Weka_clusterer'.

 newdata: an optional data set for predictions are sought. This must be
          given for predicting class memberships. If omitted or 'NULL',
          the training instances are used for predicting class ids.

    type: a character string indicating whether class ids or
          memberships should be returned. May be abbreviated.

     ...: further arguments passed to or from other methods.

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

     It is only possible to predict class memberships if the Weka
     clusterer provides a 'distributionForInstance' method.

