rdr.mulan
Class FlattenTrueLabelsClassifier
java.lang.Object
rdr.mulan.MultiLabelClassifierBase
rdr.mulan.TransformationBasedMultiLabelClassifier
rdr.mulan.FlattenTrueLabelsClassifier
- All Implemented Interfaces:
- java.io.Serializable, MultiLabelClassifier, weka.core.TechnicalInformationHandler
public class FlattenTrueLabelsClassifier
- extends TransformationBasedMultiLabelClassifier
- implements MultiLabelClassifier
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
versionId
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final java.lang.String versionId
- See Also:
- Constant Field Values
FlattenTrueLabelsClassifier
public FlattenTrueLabelsClassifier(weka.classifiers.Classifier classifier,
int numLabels)
FlattenTrueLabelsClassifier
public FlattenTrueLabelsClassifier(int numLabels)
- Creates an instance of
FlattenTrueLabelsClassifier
.
The default base classifier used is NaiveBayes
.
- Parameters:
numLabels
-
buildClassifier
public void buildClassifier(weka.core.Instances instances)
throws java.lang.Exception
- Description copied from class:
MultiLabelClassifierBase
- Builds the classifier.
- Specified by:
buildClassifier
in interface MultiLabelClassifier
- Specified by:
buildClassifier
in class MultiLabelClassifierBase
- Parameters:
instances
- set of training data, upon which the classifier should be build
- Throws:
java.lang.Exception
- if classifier was not created successfully
getRevision
public java.lang.String getRevision()