|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mulan.transformations.BinaryRelevanceTransformation
public class BinaryRelevanceTransformation
Class that implements the binary relevance transformation
Constructor Summary | |
---|---|
BinaryRelevanceTransformation(MultiLabelInstances data)
Constructor |
Method Summary | |
---|---|
Instance |
transformInstance(Instance instance,
int labelToKeep)
Remove all label attributes except labelToKeep |
static Instance |
transformInstance(Instance instance,
int[] labelIndices,
int indexToKeep)
Remove all label attributes except label at position indexToKeep |
static Instances |
transformInstances(Instances train,
int[] labelIndices,
int indexToKeep)
Remove all label attributes except that at indexOfLabelToKeep |
Instances |
transformInstances(int labelToKeep)
Remove all label attributes except labelToKeep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryRelevanceTransformation(MultiLabelInstances data)
data
- a multi-label datasetMethod Detail |
---|
public Instance transformInstance(Instance instance, int labelToKeep)
instance
- labelToKeep
-
public Instances transformInstances(int labelToKeep) throws Exception
labelToKeep
-
Exception
public static Instances transformInstances(Instances train, int[] labelIndices, int indexToKeep) throws Exception
train
- labelIndices
- indexToKeep
-
Exception
public static Instance transformInstance(Instance instance, int[] labelIndices, int indexToKeep)
instance
- labelIndices
- indexToKeep
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |