|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiLabelLearner
Common root interface for all multi-label learner types.
Method Summary | |
---|---|
void |
build(MultiLabelInstances instances)
Builds the learner model from specified MultiLabelInstances data. |
boolean |
isUpdatable()
Returns value indicating if learner is updatable, so if learner is able to perform on-line learning. |
MultiLabelLearner |
makeCopy()
Creates a deep copy of the given learner using serialization. |
MultiLabelOutput |
makePrediction(Instance instance)
Returns the prediction of the learner for a given input Instance . |
void |
setDebug(boolean debug)
Sets whether debugging information should be output by the model |
Method Detail |
---|
boolean isUpdatable()
build(MultiLabelInstances)
method.false
is returned, each call of the
build(MultiLabelInstances)
will initialize the learner from
the scratch, removing any potential knowledge built by previously entered training data.
When true
is returned, then on the first call of the
build(MultiLabelInstances)
the learner is initialized
with the passed training data. All other calls contribute to the existing learner's
model with new data.
true
if learner is updatable (on-line), false
otherwise.void build(MultiLabelInstances instances) throws Exception, InvalidDataException
MultiLabelInstances
data.
Sequential calls to this method either re-build the learners model with new data
(off-line learner) or contribute to the existing model with new data (on-line learner).
The behavior is determined by the outcome of isUpdatable()
method.
instances
- set of training data, upon which the learner model should be built
Exception
- if learner model was not created successfully
InvalidDataException
- if specified instances data is invalid or not supported by the learnerisUpdatable()
MultiLabelLearner makeCopy() throws Exception
Exception
- if an error occurs while making copy of the learner.MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException
Instance
.
instance
- the input given to the learner in the form of Instance
MultiLabelOutput
.
Exception
- if an error occurs while making the prediction.
InvalidDataException
- if specified instance data is invalid and can not be processed by the learner
ModelInitializationException
- if method is called before build(MultiLabelInstances)
void setDebug(boolean debug)
debug
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |