#include <Perceptron.h>

Public Member Functions | |
| Perceptron () | |
| Constructor. | |
| ~Perceptron () | |
| Destructor. | |
| void | init (Model &model) |
| basic initialization with default parameters | |
| void | optimize (SVM &svm, const Array< double > &input, const Array< double > &target) |
| double | optimize (Model &model, ErrorFunction &error, const Array< double > &input, const Array< double > &target) |
| Performes one optimization step, for example a gradient descent step or an evolution cycle. | |
Definition at line 54 of file Perceptron.h.
| Perceptron::Perceptron | ( | ) |
| Perceptron::~Perceptron | ( | ) |
| void Perceptron::init | ( | Model & | model | ) | [virtual] |
basic initialization with default parameters
Implements Optimizer.
Definition at line 57 of file Perceptron.cpp.
| double Perceptron::optimize | ( | Model & | model, | |
| ErrorFunction & | errorfunction, | |||
| const Array< double > & | input, | |||
| const Array< double > & | target | |||
| ) | [virtual] |
Performes one optimization step, for example a gradient descent step or an evolution cycle.
| model | Model to use for the computation. | |
| errorfunction | ErrorFunction on which decisions are based. | |
| input | Vector of input values. | |
| target | Vector of output values. |
Implements Optimizer.
Definition at line 89 of file Perceptron.cpp.
References optimize().
| void Perceptron::optimize | ( | SVM & | svm, | |
| const Array< double > & | input, | |||
| const Array< double > & | target | |||
| ) |
Definition at line 63 of file Perceptron.cpp.
References Model::getParameter(), i, SVM::model(), Model::setParameter(), and SVM::SetTrainingData().
Referenced by optimize().