Class SimpleClassifier
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.classifier.SimpleClassifier
-
- All Implemented Interfaces:
Comparable<SimpleClassifier>
- Direct Known Subclasses:
ExtendedClassifier
public class SimpleClassifier extends Object implements Comparable<SimpleClassifier>
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected doublefMeasureprotected Stringmeasureprotected StringsourcePropertyprotected StringtargetPropertyprotected doublethresholdprotected doubleweight
-
Constructor Summary
Constructors Constructor Description SimpleClassifier(String measure, double threshold)SimpleClassifier(String measure, double threshold, String sourceProperty, String targetProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleClassifierclone()intcompareTo(SimpleClassifier o)doublegetfMeasure()StringgetMeasure()StringgetMetricExpression()StringgetSourceProperty()StringgetTargetProperty()doublegetThreshold()doublegetWeight()voidsetfMeasure(double fMeasure)voidsetMeasure(String measure)voidsetSourceProperty(String sourceProperty)voidsetTargetProperty(String targetProperty)voidsetThreshold(double threshold)voidsetWeight(double weight)StringtoLinkSpecString()Shorter toString().StringtoString()
-
-
-
Method Detail
-
clone
public SimpleClassifier clone()
-
getfMeasure
public double getfMeasure()
-
setfMeasure
public void setfMeasure(double fMeasure)
-
getMeasure
public String getMeasure()
-
setMeasure
public void setMeasure(String measure)
-
getMetricExpression
public String getMetricExpression()
- Returns:
- MetricExpression
-
getSourceProperty
public String getSourceProperty()
-
setSourceProperty
public void setSourceProperty(String sourceProperty)
-
getTargetProperty
public String getTargetProperty()
-
setTargetProperty
public void setTargetProperty(String targetProperty)
-
getThreshold
public double getThreshold()
-
setThreshold
public void setThreshold(double threshold)
-
getWeight
public double getWeight()
-
setWeight
public void setWeight(double weight)
-
toLinkSpecString
public String toLinkSpecString()
Shorter toString().- Returns:
- m(p1, p2) theta=t, weight=w.
-
compareTo
public int compareTo(SimpleClassifier o)
- Specified by:
compareToin interfaceComparable<SimpleClassifier>
-
-