mulan.transformations.multiclass
Class SelectBasedOnFrequency
java.lang.Object
mulan.transformations.multiclass.MultiClassTransformationBase
mulan.transformations.multiclass.SelectBasedOnFrequency
- All Implemented Interfaces:
- Serializable, MultiClassTransformation
public class SelectBasedOnFrequency
- extends MultiClassTransformationBase
Class that implement the Select-Max and Select-Min transformation methods.
- Version:
- 2012.02.02
- Author:
- Stavros Bakirtzoglou
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectBasedOnFrequency
public SelectBasedOnFrequency(SelectionType type)
- Initializes the transformation with a
SelectionType
- Parameters:
type
- type of frequency-based selection (MIN/MAX)
transformInstances
public Instances transformInstances(MultiLabelInstances mlData)
throws Exception
- Description copied from interface:
MultiClassTransformation
- Transforms a multi-label dataset to a multi-class single label dataset
- Specified by:
transformInstances
in interface MultiClassTransformation
- Overrides:
transformInstances
in class MultiClassTransformationBase
- Parameters:
mlData
- a multi-label dataset
- Returns:
- a single-label multi-class dataset
- Throws:
Exception