generate_classification_data    package:classifly    R Documentation

_G_e_n_e_r_a_t_e _c_l_a_s_s_i_f_i_c_a_t_i_o_n _d_a_t_a.

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

     Given a model, this function generates points within

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

     generate_classification_data(model, data, n, method, advantage)

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

   model: classification model

    data: data set used in model

       n: number of points to generate

  method: method to use, currently either grid (an evenly spaced grid),
          random (uniform random distribution across cube), or
          nonaligned (grid + some random peturbationb)

advantage: 

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

     If posterior probabilities of classification are available, then
     the 'advantage' will be calculated directly.  If not, 'knn' is
     used calculate the advantage based on the number of neighbouring
     points that share the same classification.  Because knn is
     $O(n^2)$ this method is rather slow for large (>20,000 say) data
     sets.

     By default, the boundary points are identified as those below the
     5th-percentile for advantage.

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

     Hadley Wickham <h.wickham@gmail.com>

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

