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 |
Function details
-
Classifier * create
(- PiiBoostClassifier< SampleSet > * classifier
- const SampleSet & samples
- const QVector< double > & labels
- const QVector< double > & weights
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.
Add a note
Not a single note added yet. Be the first, add yours.