|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.creole.ml.weka.Wrapper
Wrapper class for the WEKA Machine Learning Engine.
Constructor Summary | |
Wrapper()
|
Method Summary | |
void |
addTrainingInstance(List attributeValues)
Adds a new training instance to the dataset. |
Object |
classifyInstance(List attributeValues)
Classifies a new instance. |
List |
getActions()
Gets the list of actions that can be performed on this resource. |
void |
init()
Initialises the classifier and prepares for running. |
void |
setDatasetDefinition(DatasetDefintion definition)
Sets the definition for the dataset used. |
void |
setOptions(org.jdom.Element optionsElem)
Sets the options from an XML JDom element. |
void |
setOwnerPR(ProcessingResource pr)
Registers the PR using the engine with the engine itself. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Wrapper()
Method Detail |
public void setOptions(org.jdom.Element optionsElem)
MLEngine
setOptions
in interface MLEngine
optionsElem
- the JDom element containing the options from the
configuration.public void addTrainingInstance(List attributeValues) throws ExecutionException
MLEngine
addTrainingInstance
in interface MLEngine
attributeValues
- the list of attributes describing the instance. The
elements in the list are String values that need to be interpreted
according to the dataset definition: for nominal attributes the values will
used as they are; for numeric attributes the values will be converted to
double.
ExecutionException
public void setDatasetDefinition(DatasetDefintion definition)
MLEngine
setDatasetDefinition
in interface MLEngine
definition
- public Object classifyInstance(List attributeValues) throws ExecutionException
MLEngine
classifyInstance
in interface MLEngine
attributeValues
- the list of attributes describing the instance. The
elements in the list are Object values that need to be interpreted
according to the dataset definition. The value for the class element will
be arbitrary.
ExecutionException
public void init() throws GateException
init
in interface MLEngine
GateException
public List getActions()
getActions
in interface ActionsPublisher
public void setOwnerPR(ProcessingResource pr)
setOwnerPR
in interface MLEngine
pr
- the processing resource that owns this engine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |