public static enum CMAnalyser.Strategy extends Enum<CMAnalyser.Strategy>
Enum Constant and Description |
---|
MULTIPLE
Strategy for multiple possible actual classes and predicted classes.
|
MULTIPLE_ORDERED
Strategy for multiple possible actual classes and predicted classes
in the case the predictions and actual classes are ordered and there
is a one-to-one correspondence.
|
SINGLE
Strategy to use when there is exactly one actual class and one
predicted class.
|
Modifier and Type | Method and Description |
---|---|
protected abstract <CLASS> void |
add(List<gov.sandia.cognition.learning.data.TargetEstimatePair<CLASS,CLASS>> data,
Set<CLASS> predicted,
Set<CLASS> actual) |
static CMAnalyser.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CMAnalyser.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CMAnalyser.Strategy SINGLE
public static final CMAnalyser.Strategy MULTIPLE
null
values for the actual/predicted class respectively.public static final CMAnalyser.Strategy MULTIPLE_ORDERED
A RuntimeException
will be thrown if the sets are not the
same size and both instances of LinkedHashSet
.
public static CMAnalyser.Strategy[] values()
for (CMAnalyser.Strategy c : CMAnalyser.Strategy.values()) System.out.println(c);
public static CMAnalyser.Strategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null