mulan.transformations
Class IncludeLabelsTransformation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeLabelsTransformation
public IncludeLabelsTransformation()
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