mulan.transformations
Class RemoveAllLabels
java.lang.Object
mulan.transformations.RemoveAllLabels
public class RemoveAllLabels
- extends Object
This transformation removes all the label attributes from a
multi-label dataset
- Version:
- 2012.02.02
- Author:
- Stavros Mpakirtzoglou, Grigorios Tsoumakas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveAllLabels
public RemoveAllLabels()
transformInstances
public static Instances transformInstances(MultiLabelInstances mlData)
throws Exception
- Parameters:
mlData
-
- Returns:
- transformed instances
- Throws:
Exception
transformInstances
public static Instances transformInstances(Instances dataSet,
int[] labelIndices)
throws Exception
- Removes the labels from a set of instances
- Parameters:
dataSet
- a multi-label datasetlabelIndices
- the indices of the labels
- Returns:
- the transformed dataset
- Throws:
Exception
transformInstance
public static Instance transformInstance(Instance instance,
int[] labelIndices)
- Parameters:
instance
- labelIndices
-
- Returns:
- tranformed instance