mulan.transformations
Class RemoveAllLabels

java.lang.Object
  extended by mulan.transformations.RemoveAllLabels

public class RemoveAllLabels
extends Object

This transformation removes all the label attributes from a multi-label dataset

Version:
2012.02.02
Author:
Stavros Mpakirtzoglou, Grigorios Tsoumakas

Constructor Summary
RemoveAllLabels()
           
 
Method Summary
static Instance transformInstance(Instance instance, int[] labelIndices)
           
static Instances transformInstances(Instances dataSet, int[] labelIndices)
          Removes the labels from a set of instances
static Instances transformInstances(MultiLabelInstances mlData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveAllLabels

public RemoveAllLabels()
Method Detail

transformInstances

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

transformInstances

public static Instances transformInstances(Instances dataSet,
                                           int[] labelIndices)
                                    throws Exception
Removes the labels from a set of instances

Parameters:
dataSet - a multi-label dataset
labelIndices - the indices of the labels
Returns:
the transformed dataset
Throws:
Exception

transformInstance

public static Instance transformInstance(Instance instance,
                                         int[] labelIndices)
Parameters:
instance -
labelIndices -
Returns:
tranformed instance