mulan.transformations
Class LabelPowersetTransformation

java.lang.Object
  extended by 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

Constructor Summary
LabelPowersetTransformation()
           
 
Method Summary
 Instances getTransformedFormat()
          Returns the format of the transformed instances
 Instance transformInstance(Instance instance, int[] labelIndices)
           
 Instances transformInstances(MultiLabelInstances mlData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelPowersetTransformation

public LabelPowersetTransformation()
Method Detail

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