Perceptron online learning algorithm. More...
#include <shark/Algorithms/Trainers/Perceptron.h>
 Inheritance diagram for shark::Perceptron< InputType >:
 Inheritance diagram for shark::Perceptron< InputType >:| Public Member Functions | |
| Perceptron (AbstractKernelFunction< InputType > *kernel, std::size_t maxTimesPattern=10000) | |
| Constructor. | |
| std::string | name () const | 
| From INameable: return the class name. | |
| void | train (KernelClassifier< InputType > &classifier, LabeledData< InputType, unsigned int > const &dataset) | 
|  Public Member Functions inherited from shark::AbstractTrainer< KernelClassifier< InputType >, unsigned int > | |
| virtual void | train (ModelType &model, DatasetType const &dataset)=0 | 
| Core of the Trainer interface. | |
|  Public Member Functions inherited from shark::INameable | |
| virtual | ~INameable () | 
|  Public Member Functions inherited from shark::ISerializable | |
| virtual | ~ISerializable () | 
| Virtual d'tor. | |
| virtual void | read (InArchive &archive) | 
| Read the component from the supplied archive. | |
| virtual void | write (OutArchive &archive) const | 
| Write the component to the supplied archive. | |
| void | load (InArchive &archive, unsigned int version) | 
| Versioned loading of components, calls read(...). | |
| void | save (OutArchive &archive, unsigned int version) const | 
| Versioned storing of components, calls write(...). | |
| BOOST_SERIALIZATION_SPLIT_MEMBER () | |
| Additional Inherited Members | |
|  Public Types inherited from shark::AbstractTrainer< KernelClassifier< InputType >, unsigned int > | |
| typedef KernelClassifier< InputType > | ModelType | 
| typedef ModelType::InputType | InputType | 
| typedef unsigned int | LabelType | 
| typedef LabeledData< InputType, LabelType > | DatasetType | 
Perceptron online learning algorithm.
Definition at line 46 of file Perceptron.h.
| 
 | inline | 
Constructor.
| kernel | is the (Mercer) kernel function. | 
| maxTimesPattern | defines the maximum number of times the data is processed before the algorithms stopps. | 
Definition at line 53 of file Perceptron.h.
| 
 | inlinevirtual | 
From INameable: return the class name.
Reimplemented from shark::INameable.
Definition at line 57 of file Perceptron.h.
| 
 | inline | 
Definition at line 60 of file Perceptron.h.
References shark::KernelExpansion< InputType >::alpha(), shark::Classifier< Model >::decisionFunction(), shark::LabeledData< InputT, LabelT >::element(), shark::LabeledData< InputT, LabelT >::inputs(), shark::LabeledData< InputT, LabelT >::numberOfElements(), and shark::KernelExpansion< InputType >::setStructure().