expGetE                 package:FKBL                 R Documentation

_C_r_e_a_t_e_s _t_h_e _E_R_R_O_R _v_e_c_t_o_r

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

     This eases the realization of an experiment. It gets an error
     vector, from a vector of classes.

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

      expGetE(test,classes,errorfunc=NULL)

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

     Takes the test data, the classes vector and the error function.

    test: The test dataset.

 classes: The vector of classes.

errorfunc: The error function to be used. If none is provided the
          default one is used. The function provided  must respect the
          original function input format.

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

     Returns a dataset with the errors.

     Here is the expected result for the example. \begin{ExampleCode} 
     confS0 confS1 confS2 confS3 confS4 ana rew mich hyb pitt es 1     
     0      0      0      0      0   0   0    0   0    0  0
     \end{ExampleCode}

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

      data(trainM)
      print(trainM)

      kBs<-expGetKb(trainM[1:8,],P=getPart(trainM[1:8,],10))
      cl<-expGetCl(trainM[9,],kBs)
      error<-expGetE(trainM[9,],cl)

      #prints the actual error dataset
      print(error);

