public class KernelizedPerceptron extends Perceptron implements KernelMethod
[Rosenblatt1957] F. Rosenblatt. The Perceptron – a perceiving and recognizing automaton. Report 85-460-1, Cornell Aeronautical Laboratory (1957)
alpha, classifier, label, margin, unbiased
Constructor and Description |
---|
KernelizedPerceptron() |
KernelizedPerceptron(float alpha,
float margin,
boolean unbiased,
Kernel kernel,
Label label) |
Modifier and Type | Method and Description |
---|---|
KernelizedPerceptron |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
Kernel |
getKernel()
Returns the kernel exploited by this learner
|
BinaryKernelMachineClassifier |
getPredictionFunction()
Returns the classifier learned during the training process
|
void |
setKernel(Kernel kernel)
Sets the kernel this
|
void |
setPredictionFunction(PredictionFunction predictionFunction)
Sets the predictionFunction learned during the training process.
|
getAlpha, getLabel, getLabels, getMargin, isUnbiased, learn, learn, reset, setAlpha, setLabel, setLabels, setMargin, setUnbiased
public Kernel getKernel()
KernelMethod
getKernel
in interface KernelMethod
public void setKernel(Kernel kernel)
KernelMethod
setKernel
in interface KernelMethod
kernel
- the kernel to setpublic KernelizedPerceptron duplicate()
LearningAlgorithm
duplicate
in interface LearningAlgorithm
public BinaryKernelMachineClassifier getPredictionFunction()
ClassificationLearningAlgorithm
getPredictionFunction
in interface ClassificationLearningAlgorithm
getPredictionFunction
in interface LearningAlgorithm
getPredictionFunction
in class Perceptron
public void setPredictionFunction(PredictionFunction predictionFunction)
LearningAlgorithm
setPredictionFunction
in interface LearningAlgorithm
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.