expGetCl                package:FKBL                R Documentation

_C_r_e_a_t_e_s _t_h_e _c_l_a_s_s _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 a class set
     from a set of knowledge bases.

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

      expGetCl(test,kBs, inferencefunc=NULL)

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

     Takes the test data, the kB vector and the inference function.

    test: The test dataset.

     kBs: The vector of knowledge bases.

inferencefunc: The inference 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 inferred  classes.

     Here is the expected result for the example. As the test is only
     one case, only one class is infered.

     \begin{ExampleCode} [[1]] [1] 0

     [[2]] [1] 0

     [[3]] [1] 0

     [[4]] [1] 0

     [[5]] [1] 0

     [[6]] [1] 0

     [[7]] [1] 0

     [[8]] [1] 0

     [[9]] [1] 0

     [[10]] [1] 0

     [[11]] [1] 0

     \end{ExampleCode}

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

      data(trainM)
      print(trainM)
      kBs<-expGetKb(trainM[1:8,],P=getPart(trainM))
      out<-expGetCl(trainM[9,],kBs)
       
      #Shows the result
      print(out)
      

