|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrdr.mulan.MultiLabelClassifierBase
public abstract class MultiLabelClassifierBase
Common base class for all multi-label classifiers.
| Constructor Summary | |
|---|---|
MultiLabelClassifierBase(int numLabels)
Creates a MultiLabelClassifierBase instance. |
|
| Method Summary | |
|---|---|
abstract void |
buildClassifier(weka.core.Instances instances)
Builds the classifier. |
boolean |
getDebug()
Get whether debugging is turned on. |
int |
getNumLabels()
Returns a number of labels the classifier is configured for. |
abstract weka.core.TechnicalInformation |
getTechnicalInformation()
|
static MultiLabelClassifier |
makeCopy(MultiLabelClassifier model)
Creates a deep copy of the given classifier using serialization. |
Prediction |
predict(weka.core.Instance instance)
Computes the prediction of labels for a specified input Instance. |
void |
setDebug(boolean debug)
Set debugging mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLabelClassifierBase(int numLabels)
MultiLabelClassifierBase instance.
numLabels - the number of labels the classifier should use| Method Detail |
|---|
public int getNumLabels()
Instances training data.
getNumLabels in interface MultiLabelClassifierpublic abstract weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface weka.core.TechnicalInformationHandler
public abstract void buildClassifier(weka.core.Instances instances)
throws java.lang.Exception
buildClassifier in interface MultiLabelClassifierinstances - set of training data, upon which the classifier should be build
java.lang.Exception - if classifier was not created successfully
public final Prediction predict(weka.core.Instance instance)
throws java.lang.Exception
MultiLabelClassifierInstance.
predict in interface MultiLabelClassifierinstance - the input instance for which the prediction is made
java.lang.Exception - if prediction was not successfulpublic void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public static MultiLabelClassifier makeCopy(MultiLabelClassifier model)
throws java.lang.Exception
model - the classifier to copy
java.lang.Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||