mulan.transformations.multiclass
Class SelectBasedOnFrequency

java.lang.Object
  extended by mulan.transformations.multiclass.MultiClassTransformationBase
      extended by 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

Field Summary
 
Fields inherited from class mulan.transformations.multiclass.MultiClassTransformationBase
labelIndices, numOfLabels
 
Constructor Summary
SelectBasedOnFrequency(SelectionType type)
          Initializes the transformation with a SelectionType
 
Method Summary
 Instances transformInstances(MultiLabelInstances mlData)
          Transforms a multi-label dataset to a multi-class single label dataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectBasedOnFrequency

public SelectBasedOnFrequency(SelectionType type)
Initializes the transformation with a SelectionType

Parameters:
type - type of frequency-based selection (MIN/MAX)
Method Detail

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