|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.misc.monotone.AbsoluteLossFunction
public class AbsoluteLossFunction
Class implementing the absolute loss function, this means the returned loss is the abolute value of the difference between the predicted and actual value.
This implementation is done as part of the master's thesis: "Studie en implementatie van instantie-gebaseerde algoritmen voor gesuperviseerd rangschikken", Stijn Lievens, Ghent University, 2004.
Constructor Summary | |
---|---|
AbsoluteLossFunction()
|
Method Summary | |
---|---|
java.lang.String |
getRevision()
Returns the revision string. |
double |
loss(double actual,
double predicted)
Returns the absolute loss function between two class values. |
java.lang.String |
toString()
Returns a string with the name of the loss function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbsoluteLossFunction()
Method Detail |
---|
public final double loss(double actual, double predicted)
loss
in interface NominalLossFunction
actual
- the actual class valuepredicted
- the predicted class value
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |