|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.misc.monotone.ZeroOneLossFunction
public class ZeroOneLossFunction
Class implementing the zero-one loss function, this is an incorrect prediction always accounts for one unit loss.
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 | |
|---|---|
ZeroOneLossFunction()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getRevision()
Returns the revision string. |
double |
loss(double actual,
double predicted)
Returns the zero-one 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 ZeroOneLossFunction()
| Method Detail |
|---|
public final double loss(double actual,
double predicted)
loss in interface NominalLossFunctionactual - the actual class valuepredicted - the predicted class value
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||