A Single-layer Perceptron.
More...
#include <yat/classifier/Perceptron.h>
A Single-layer Perceptron.
Data are modeled as
- Since
- New in yat 0.16
◆ covariance()
const utility::Matrix& theplu::yat::classifier::Perceptron::covariance |
( |
void |
| ) |
const |
◆ oddsratio()
double theplu::yat::classifier::Perceptron::oddsratio |
( |
size_t |
i | ) |
const |
The odds ratio is defined as
◆ oddsratio_lower_CI()
double theplu::yat::classifier::Perceptron::oddsratio_lower_CI |
( |
size_t |
i, |
|
|
double |
alpha = 0.05 |
|
) |
| const |
The lower end of the confidence interval of estimation of oddsratio i with confidence 1 - alpha. The true value is estimated to be within confidence interval with probability 1 - alpha.
◆ oddsratio_upper_CI()
double theplu::yat::classifier::Perceptron::oddsratio_upper_CI |
( |
size_t |
i, |
|
|
double |
alpha = 0.05 |
|
) |
| const |
The lower end of the confidence interval of estimation of oddsratio i with confidence 1 - alpha. The true value is estimated to be within confidence interval with probability 1 - alpha.
◆ p_value()
double theplu::yat::classifier::Perceptron::p_value |
( |
size_t |
i | ) |
const |
- Returns
- p-value that for null hypothesis that ith weight is zero
◆ predict()
- Returns
-
◆ train()
train the model
Model parameters, , are calculated such that the log-likelihood, , is maximized.
- Parameters
-
x | each row corresponds to a data point and each column a feature. |
target | describes the class label for each data point. Data that has binary set are trained to output 1. |
◆ weight()
const utility::Vector& theplu::yat::classifier::Perceptron::weight |
( |
void |
| ) |
const |
- Returns
- trained weight vector, .
The documentation for this class was generated from the following file: