|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.MultiLabelOutput
public class MultiLabelOutput
Class representing the output of a MultiLabelLearner.
This can be a bipartition of labels into true and false,
a ranking of labels, or an array of confidence values for each label.
| Constructor Summary | |
|---|---|
MultiLabelOutput(boolean[] bipartition)
Creates a new instance of MultiLabelOutput. |
|
MultiLabelOutput(boolean[] bipartition,
double[] someConfidences)
Creates a new instance of MultiLabelOutput. |
|
MultiLabelOutput(double[] probabilities)
Creates a new instance of MultiLabelOutput. |
|
MultiLabelOutput(double[] probabilities,
double threshold)
Creates a new instance of MultiLabelOutput. |
|
MultiLabelOutput(int[] ranking)
Creates a new instance of MultiLabelOutput. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object mlo)
Tests if two MultiLabelOutput objects are equal |
boolean[] |
getBipartition()
Gets bipartition of labels. |
double[] |
getConfidences()
Gets confidences of labels. |
int[] |
getRanking()
Gets ranking of labels. |
boolean |
hasBipartition()
Determines whether the MultiLabelOutput has bipartition of labels. |
boolean |
hasConfidences()
Determines whether the MultiLabelOutput has confidences of labels. |
int |
hashCode()
|
boolean |
hasRanking()
Determines whether the MultiLabelOutput has ranking of labels. |
static int[] |
ranksFromValues(double[] values)
Creates a ranking form specified values/confidences. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLabelOutput(boolean[] bipartition)
MultiLabelOutput.
bipartition - bipartition of labels
ArgumentNullException - if bipartitions is null.public MultiLabelOutput(int[] ranking)
MultiLabelOutput.
ranking - ranking of labels
ArgumentNullException - if ranking is null
public MultiLabelOutput(double[] probabilities,
double threshold)
MultiLabelOutput. It creates a ranking
based on the probabilities and a bipartition based on a threshold for the probabilities.
probabilities - score of each labelthreshold - threshold to output bipartition based on probabilities
ArgumentNullException - if probabilities is nullpublic MultiLabelOutput(double[] probabilities)
MultiLabelOutput. It creates a ranking
based on the probabilities.
probabilities - score of each label
ArgumentNullException - if probabilities is null
public MultiLabelOutput(boolean[] bipartition,
double[] someConfidences)
MultiLabelOutput.
bipartition - bipartition of labelssomeConfidences - values of labels
ArgumentNullException - if either of the input parameters is null or
their dimensions do not match| Method Detail |
|---|
public boolean[] getBipartition()
public boolean hasBipartition()
MultiLabelOutput has bipartition of labels.
true if has bipartition; otherwise falsepublic int[] getRanking()
public boolean hasRanking()
MultiLabelOutput has ranking of labels.
true if has ranking; otherwise falsepublic double[] getConfidences()
public boolean hasConfidences()
MultiLabelOutput has confidences of labels.
true if has confidences; otherwise falsepublic static int[] ranksFromValues(double[] values)
values - the values/confidences to be converted to ranking
public boolean equals(Object mlo)
equals in class Objectmlo - a MultiLabelOutput object
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||