|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used for wrappers to Machine Learning engines. All classes implementing this interface should have a public constructor that takes no parameters.
Method Summary | |
void |
addTrainingInstance(List attributes)
Adds a new training instance to the dataset. |
Object |
classifyInstance(List attributes)
Classifies a new instance. |
void |
init()
This method will be called after an engine is created and has its dataset and options set. |
void |
setDatasetDefinition(DatasetDefintion definition)
Sets the definition for the dataset used. |
void |
setOptions(org.jdom.Element options)
Sets the options from an XML JDom element. |
void |
setOwnerPR(ProcessingResource pr)
Registers the PR using the engine with the engine itself. |
Method Detail |
public void setOptions(org.jdom.Element options)
options
- the JDom element containing the options from the
configuration.public void addTrainingInstance(List attributes) throws ExecutionException
attributes
- 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)
definition
- public Object classifyInstance(List attributes) throws ExecutionException
attributes
- 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
GateException
public void setOwnerPR(ProcessingResource pr)
pr
- the processing resource that owns this engine.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |