11 #ifndef _PERCEPTRON_H___ 12 #define _PERCEPTRON_H___ 14 #include <shogun/lib/config.h> 74 virtual const char*
get_name()
const {
return "Perceptron"; }
98 bool m_initialize_hyperplane;
void set_learn_rate(float64_t r)
set learn rate of gradient descent training algorithm
The class Labels models labels, i.e. class assignments of objects.
bool get_initialize_hyperplane()
get if the hyperplane should be initialized
virtual const char * get_name() const
Features that support dot products among other operations.
void set_max_iter(int32_t i)
set maximum number of iterations
virtual EMachineType get_classifier_type()
MACHINE_PROBLEM_TYPE(PT_BINARY)
void set_initialize_hyperplane(bool initialize_hyperplane)
set if the hyperplane should be initialized
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
Class Perceptron implements the standard linear (online) perceptron.
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual bool train_machine(CFeatures *data=NULL)