Package adams.flow.container
Class WekaClusterEvaluationContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaClusterEvaluationContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>,adams.core.GlobalInfoSupporter,adams.data.spreadsheet.SpreadSheetSupporter,adams.flow.container.Container,Serializable
public class WekaClusterEvaluationContainer extends adams.flow.container.AbstractContainerA container forClusterEvaluationobjects, with optional trained model.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringVALUE_EVALUATIONthe identifier for the ClusterEvaluation.static StringVALUE_LOGLIKELIHOODthe identifier for the log-likelihood.static StringVALUE_MODELthe identifier for the Model.
-
Constructor Summary
Constructors Constructor Description WekaClusterEvaluationContainer()Initializes the container.WekaClusterEvaluationContainer(double logLikelihood)Initializes the container with the log-likelihood.WekaClusterEvaluationContainer(weka.clusterers.ClusterEvaluation eval)Initializes the container.WekaClusterEvaluationContainer(weka.clusterers.ClusterEvaluation eval, Object model)Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitHelp()Initializes the help strings.booleanisValid()Checks whether the setup of the container is valid.Iterator<String>names()Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_EVALUATION
public static final String VALUE_EVALUATION
the identifier for the ClusterEvaluation.- See Also:
- Constant Field Values
-
VALUE_MODEL
public static final String VALUE_MODEL
the identifier for the Model.- See Also:
- Constant Field Values
-
VALUE_LOGLIKELIHOOD
public static final String VALUE_LOGLIKELIHOOD
the identifier for the log-likelihood.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaClusterEvaluationContainer
public WekaClusterEvaluationContainer()
Initializes the container.
Only used for generating help information.
-
WekaClusterEvaluationContainer
public WekaClusterEvaluationContainer(weka.clusterers.ClusterEvaluation eval)
Initializes the container.- Parameters:
eval- the evaluation to use
-
WekaClusterEvaluationContainer
public WekaClusterEvaluationContainer(weka.clusterers.ClusterEvaluation eval, Object model)Initializes the container.- Parameters:
eval- the evaluation to usemodel- the model to use
-
WekaClusterEvaluationContainer
public WekaClusterEvaluationContainer(double logLikelihood)
Initializes the container with the log-likelihood.- Parameters:
logLikelihood- the log-likelihood
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelpin classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceadams.flow.container.Container- Specified by:
namesin classadams.flow.container.AbstractContainer- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValidin interfaceadams.flow.container.Container- Specified by:
isValidin classadams.flow.container.AbstractContainer- Returns:
- true if all the necessary values are available
-
-