public class DoubleArrayKernelPerceptron extends KernelPerceptron<double[],PerceptronClass>
KernelPerceptron
which works with
double arrays.Modifier and Type | Field and Description |
---|---|
protected List<double[]> |
supports |
protected List<Double> |
weights |
errors
Constructor and Description |
---|
DoubleArrayKernelPerceptron(VectorKernel k) |
Modifier and Type | Method and Description |
---|---|
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 DoubleArrayKernelPerceptron(VectorKernel k)
k
- the kernelprotected 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>