mulan.transformations
Class LabelPowersetTransformation
java.lang.Object
mulan.transformations.LabelPowersetTransformation
- All Implemented Interfaces:
- Serializable
public class LabelPowersetTransformation
- extends Object
- implements Serializable
Class that implement the Label powerset (LP) transformation method
- Version:
- 2012.02.02
- Author:
- Stavros Mpakirtzoglou, Grigorios Tsoumakas
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelPowersetTransformation
public LabelPowersetTransformation()
getTransformedFormat
public Instances getTransformedFormat()
- Returns the format of the transformed instances
- Returns:
- the format of the transformed instances
transformInstances
public Instances transformInstances(MultiLabelInstances mlData)
throws Exception
- Parameters:
mlData
-
- Returns:
- the transformed instances
- Throws:
Exception
transformInstance
public Instance transformInstance(Instance instance,
int[] labelIndices)
throws Exception
- Parameters:
instance
- labelIndices
-
- Returns:
- tranformed instance
- Throws:
Exception