public class MatrixKernelPerceptron extends KernelPerceptron<double[],PerceptronClass>
KernelPerceptron
which works with
Matrix
inputs and is binary.Modifier and Type | Field and Description |
---|---|
protected List<double[]> |
supports |
protected List<Double> |
weights |
errors
Constructor and Description |
---|
MatrixKernelPerceptron(VectorKernel k) |
Modifier and Type | Method and Description |
---|---|
double[] |
correct(double[] in) |
double |
getBias() |
List<double[]> |
getSupports() |
List<Double> |
getWeights() |
protected double |
mapping(double[] in) |
PerceptronClass |
predict(double[] x) |
void |
update(double[] xt,
PerceptronClass yt,
PerceptronClass yt_prime)
When there is an error in prediction, update somehow
|
getErrors, process
public MatrixKernelPerceptron(VectorKernel k)
k
- the kernelpublic double[] correct(double[] in)
protected double mapping(double[] in)
public PerceptronClass predict(double[] x)
public void update(double[] xt, PerceptronClass yt, PerceptronClass yt_prime)
KernelPerceptron
update
in class KernelPerceptron<double[],PerceptronClass>
public List<double[]> getSupports()
getSupports
in class KernelPerceptron<double[],PerceptronClass>
public List<Double> getWeights()
getWeights
in class KernelPerceptron<double[],PerceptronClass>
public double getBias()
getBias
in class KernelPerceptron<double[],PerceptronClass>