prtClass Base class for prt Classification objects
All prtClass objects inherit all properities and methods from the
prtAction object. prtClass objects have the following additional
isNativeMary - Whather or not the classifier natively produces an
internalDecider - An optionl property, the default is empty.
InternalDecider is an instance of a prtDecision
object. When set, the RUN function of the
classifier will output discrete values
corresponding to the class determined by the
classifier and the decision object
(binary classifier), or a binary vector of
zeros and ones (M-ary classification).
prtClass objects have the following methods:
plot - Plot the output confidence of a trained classifier.
This function only operates when trained by a
dataset of 3 dimensions or lower.
A prtClass object inherits the TRAIN, RUN, CROSSVALIDATE and KFOLDS
functions from the prtAction object.
Concrete sub-classes of prtClass must define the abstract
methods trainAction and runAction defined in prtAction. These
methods have function definitions as follows:
Obj = trainAction(Obj, DataSet)
DataSet = runAction(Obj, DataSet)
Both methods are protected and hidden. A concrete subclass of
prtClass should contain code similar to the following:
methods (Access = protected, Hidden = true)
function Obj = trainAction(Obj, DataSet)
%Code to set trained parameters of Obj
function DataSetOut = runAction(Obj, DataSet)
%Code to run trained Obj on DataSet and generate DataSetOut
%with observations set to the output of the classification