mulan.transformations
Class IncludeLabelsTransformation

java.lang.Object
  extended by mulan.transformations.IncludeLabelsTransformation
All Implemented Interfaces:
Serializable

public class IncludeLabelsTransformation
extends Object
implements Serializable

Class that implements the PT6 transformation

Version:
2012.02.02
Author:
Stavros Mpakirtzoglou, Grigorios Tsoumakas
See Also:
Serialized Form

Constructor Summary
IncludeLabelsTransformation()
           
 
Method Summary
 Instance transformInstance(Instance instance)
          Transform an unlabeled instance to the format expected by the binary classifier
 Instances transformInstances(MultiLabelInstances mlData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeLabelsTransformation

public IncludeLabelsTransformation()
Method Detail

transformInstances

public Instances transformInstances(MultiLabelInstances mlData)
                             throws Exception
Parameters:
mlData -
Returns:
transformed instances
Throws:
Exception

transformInstance

public Instance transformInstance(Instance instance)
                           throws Exception
Transform an unlabeled instance to the format expected by the binary classifier

Parameters:
instance - an unlabeled instance
Returns:
a transformed unlabeled instance
Throws:
Exception