Into

Modules

Documentation

classPiiDefaultClassifierFactory

#include <PiiDefaultClassifierFactory.h>

Default implementation of PiiBoostClassifier::Factory.

Inherits PiiBoostClassifier< SampleSet >::Factory

Description

The type of the classifier to be created by this factory is given by the Classifier template parameter. Classifier must implement the PiiLearningAlgorithm and PiiClassifier interfaces and it must support weighted learning.

 // Creates decision stumps
 PiiDefaultClassifierFactory<PiiDecisionStump<PiiMatrix<double> > > factory;
 PiiBoostClassifier<PiiMatrix<double> > classifier(&factory);
See also

Public types

typedef Classifier::SampleSetType

Public member functions

Classifier *
( )

Creates a new instance of Classifier (given as a template parameter) using its default constructor and trains it using the given samples, labels, and weights.

Function details

  • Classifier * create

    ( )

    Creates a new instance of Classifier (given as a template parameter) using its default constructor and trains it using the given samples, labels, and weights.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.