|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.flow.container.AbstractContainer
adams.flow.container.WekaPredictionContainer
public class WekaPredictionContainer
A container for predictions made by a classifier.
| Field Summary | |
|---|---|
static String |
VALUE_CLASSIFICATION
the identifier for the Classification. |
static String |
VALUE_CLASSIFICATION_LABEL
the identifier for the Classification's label. |
static String |
VALUE_DISTRIBUTION
the identifier for the Distribution. |
static String |
VALUE_INSTANCE
the identifier for the Instance. |
static String |
VALUE_RANGECHECK
the identifier for the Range check. |
| Fields inherited from class adams.flow.container.AbstractContainer |
|---|
m_AdditionalNames, m_Values |
| Constructor Summary | |
|---|---|
WekaPredictionContainer()
Initializes the container. |
|
WekaPredictionContainer(weka.core.Instance inst,
double cls,
double[] dist)
Initializes the container. |
|
WekaPredictionContainer(weka.core.Instance inst,
double cls,
double[] dist,
String rangeCheck)
Initializes the container. |
|
| Method Summary | |
|---|---|
boolean |
isValid()
Checks whether the setup of the container is valid. |
Enumeration<String> |
names()
Returns all value names that can be used (theoretically). |
| Methods inherited from class adams.flow.container.AbstractContainer |
|---|
addAdditionalName, checkDefaultConstructor, getClone, getValue, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VALUE_INSTANCE
public static final String VALUE_CLASSIFICATION
public static final String VALUE_CLASSIFICATION_LABEL
public static final String VALUE_DISTRIBUTION
public static final String VALUE_RANGECHECK
| Constructor Detail |
|---|
public WekaPredictionContainer()
public WekaPredictionContainer(weka.core.Instance inst,
double cls,
double[] dist)
inst - the instance that was used for predictioncls - the classificationdist - the class distribution
public WekaPredictionContainer(weka.core.Instance inst,
double cls,
double[] dist,
String rangeCheck)
inst - the instance that was used for predictioncls - the classificationdist - the class distributionrangeCheck - the range check, null if not available| Method Detail |
|---|
public Enumeration<String> names()
names in class AbstractContainerpublic boolean isValid()
isValid in class AbstractContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||