public class LinearPerceptron extends Perceptron implements LinearMethod
[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 |
---|
LinearPerceptron() |
LinearPerceptron(float alpha,
float margin,
boolean unbiased,
String representation,
Label label) |
Modifier and Type | Method and Description |
---|---|
LinearPerceptron |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
BinaryLinearClassifier |
getPredictionFunction()
Returns the classifier learned during the training process
|
String |
getRepresentation()
Returns the representation this learning algorithm exploits
|
void |
setPredictionFunction(PredictionFunction predictionFunction)
Sets the predictionFunction learned during the training process.
|
void |
setRepresentation(String representation)
Sets the representation this learning algorithm will exploit
|
getAlpha, getLabel, getLabels, getMargin, isUnbiased, learn, learn, reset, setAlpha, setLabel, setLabels, setMargin, setUnbiased
public String getRepresentation()
LinearMethod
getRepresentation
in interface LinearMethod
public void setRepresentation(String representation)
LinearMethod
setRepresentation
in interface LinearMethod
representation
- the representation to setpublic LinearPerceptron duplicate()
LearningAlgorithm
duplicate
in interface LearningAlgorithm
public BinaryLinearClassifier 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.