classifierOutput-class     package:MLInterfaces     R Documentation

_C_l_a_s_s "_c_l_a_s_s_i_f_i_e_r_O_u_t_p_u_t"

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

     This class summarizes the output values from different
     classifiers.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects are typically created during the application of a
     supervised  machine learning algorithm to data and are the value
     returned.  It is very unlikely that any user would create such an
     object by hand.

_S_l_o_t_s:


     '_t_e_s_t_O_u_t_c_o_m_e_s': Object of class '"factor"' that lists the actual
          outcomes in the records on the test set 

     '_t_e_s_t_P_r_e_d_i_c_t_i_o_n_s': Object of class '"factor"' that lists the
          predictions of outcomes in the test set 

     '_t_e_s_t_S_c_o_r_e_s': Object of class '"ANY"' - this element will include
          matrices or vectors or arrays that include information that
          is typically related to the posterior probability of
          occupancy of the predicted class or of all classes.  The
          actual contents of this slot can be determined by inspecting
          the converter element of the learnerSchema used to select the
          model. 

     '_t_r_a_i_n_O_u_t_c_o_m_e_s': Object of class '"factor"' that lists the actual
          outcomes in records on the training set 

     '_t_r_a_i_n_P_r_e_d_i_c_t_i_o_n_s': Object of class '"factor"' that lists the
          predicted outcomes in the training set 

     '_t_r_a_i_n_S_c_o_r_e_s': Object of class '"ANY"' see the description of
          'testScores' above; the same information is returned, but
          applicable to the training set records.

     '_R_O_b_j_e_c_t': Object of class '"ANY"' - when the 'trainInd' parameter
          of the 'MLearn' call is numeric, this slot holds the return
          value of the underlying R function that carried out the
          predictive modeling.  For example, if 'rpartI' was used as
          MLearn 'method', 'Robject' holds an instance of the 'rpart'
          S3 class, and 'plot' and 'text' methods can be applied to
          this.  When the 'trainInd' parameter of the 'MLearn' call is
          an instance of 'xvalSpec', this slot holds a 'list' of
          results of cross-validatory iterations.  Each element of this
          list has two elements: 'test.idx', giving the numeric indices
          of the test cases for the associated cross-validation
          iteration, and 'mlans', which is the 'classifierOutput' for
          the associated iteration.  See the example for an
          illustration of 'digging out' the predicted probabilities
          associated with each cross-validation iteration executed
          through an xvalSpec specification. 

     '_c_a_l_l': Object of class '"call"' - records the call used to
          generate the classifierOutput RObject 

     '_e_m_b_e_d_d_e_d_C_V': logical indicating whether the learning engine has
          cross-validation embedded within

     '_f_s_H_i_s_t_o_r_y': list of feature names included in the feature
          selection process iterations

     '_l_e_a_r_n_e_r_S_c_h_e_m_a': audit of what was used to  schematize the
          learning process for this run

_M_e_t_h_o_d_s:


     _c_o_n_f_u_M_a_t 'signature(obj = "classifierOutput")': Compute the
          confusion matrix for test records. 

     _c_o_n_f_u_M_a_t_T_r_a_i_n 'signature(obj = "classifierOutput")': Compute the
          confusion matrix for training set.  Typically yields
          optimistically biased information on misclassification rate. 

     _R_O_b_j_e_c_t 'signature(obj = "classifierOutput")': The R object
          returned by the underlying classifier. This can then be
          passed on to specific methods for those objects, when they
          exist. 

     _s_h_o_w 'signature(object = "classifierOutput")': A print method that
          provides a summary of the output of the classifier. 

     _t_e_s_t_S_c_o_r_e_s 'signature(object = "classifierOutput")': ... 

     _t_e_s_t_P_r_e_d_i_c_t_i_o_n_s 'signature(object = "classifierOutput")': Print
          the predicted classes for each sample/individual in the test
          set. 

     _t_r_a_i_n_P_r_e_d_i_c_t_i_o_n_s 'signature(object = "classifierOutput")': Print
          the predicted classes for each sample/individual in the
          training set. 

     _f_s_H_i_s_t_o_r_y 'signature(object = "classifierOutput")': ... 

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

     V. Carey

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

     showClass("classifierOutput")
     library(golubEsets)
     data(Golub_Train) # now cross-validate a neural net
     set.seed(1234)
     xv5 = xvalSpec("LOG", 5, balKfold.xvspec(5))
     m2 = MLearn(ALL.AML~., Golub_Train[1000:1050,], nnetI, xv5, 
        size=5, decay=.01, maxit=1900 )
     testScores(RObject(m2)[[1]]$mlans)
     alls = lapply(RObject(m2), function(x) testScores(x$mlans))

