1 #ifndef theplu_yat_classifier_perceptron 2 #define theplu_yat_classifier_perceptron 25 #include <yat/utility/Matrix.h> 26 #include <yat/utility/Vector.h> 30 namespace classifier {
108 double margin(
size_t i,
double alpha)
const;
Definition: MatrixBase.h:54
Class for containing sample labels.
Definition: Target.h:47
double oddsratio_lower_CI(size_t i, double alpha=0.05) const
The Department of Theoretical Physics namespace as we define it.
A Single-layer Perceptron.
Definition: Perceptron.h:41
double oddsratio(size_t i) const
This is the yat interface to GSL vector.
Definition: Vector.h:59
double oddsratio_upper_CI(size_t i, double alpha=0.05) const
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
void train(const utility::MatrixBase &x, const Target &target)
train the model
double p_value(size_t i) const
Interface to GSL matrix.
Definition: Matrix.h:104
const utility::Vector & weight(void) const
double predict(const utility::VectorBase &x) const
const utility::Matrix & covariance(void) const