uk.ac.ed.inf.enzml.mulan
Class MulanAttributeFactory

java.lang.Object
  extended by uk.ac.ed.inf.enzml.weka.AttributeFactory
      extended by uk.ac.ed.inf.enzml.mulan.MulanAttributeFactory
Direct Known Subclasses:
AttributesFilteredAttributeFactory

public class MulanAttributeFactory
extends AttributeFactory

In the Mulan ARFF, the class attribute is not generated. Instead, a list of class attributes were previously added to the attributes.

Version:
7 May 2010
Author:
Luna De Ferrari luna.deferrari-at-ed.ac.uk

Field Summary
static double ABSENT_OPTION
           
static double PRESENT_OPTION
           
 
Constructor Summary
MulanAttributeFactory(MulanDataSetGenerator dataSetGenerator)
           
 
Method Summary
 weka.core.Attribute generateBinaryAttribute(java.lang.String attributeName)
          Generates a binary attribute
 java.lang.String getAttributeAbsentOption()
           
 java.lang.String getAttributePresentOption()
           
 java.util.Vector<java.lang.String> getBinaryAttributeValuesSet()
          Get the possible attribute values for a yes/no attribute.
 MulanDataSetGenerator getDataSetGenerator()
           
 
Methods inherited from class uk.ac.ed.inf.enzml.weka.AttributeFactory
attributeIsValid, generateNominalAttribute, generateNominalAttributeWithDummy, getAttributeByName, getAttributes, getAttributesNames, getClassAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSENT_OPTION

public static final double ABSENT_OPTION
See Also:
Constant Field Values

PRESENT_OPTION

public static final double PRESENT_OPTION
See Also:
Constant Field Values
Constructor Detail

MulanAttributeFactory

public MulanAttributeFactory(MulanDataSetGenerator dataSetGenerator)
Method Detail

generateBinaryAttribute

public weka.core.Attribute generateBinaryAttribute(java.lang.String attributeName)
Description copied from class: AttributeFactory
Generates a binary attribute

Overrides:
generateBinaryAttribute in class AttributeFactory
Parameters:
attributeName - the attribute name
Returns:
the weka attribute

getAttributeAbsentOption

public java.lang.String getAttributeAbsentOption()
Overrides:
getAttributeAbsentOption in class AttributeFactory

getAttributePresentOption

public java.lang.String getAttributePresentOption()
Overrides:
getAttributePresentOption in class AttributeFactory

getBinaryAttributeValuesSet

public java.util.Vector<java.lang.String> getBinaryAttributeValuesSet()
Description copied from class: AttributeFactory
Get the possible attribute values for a yes/no attribute. Beware!: the option "no" has to be listed as first option for the sparse ARFF format to work! http://weka.wikispaces.com/ARFF+%28stable+version%29

Overrides:
getBinaryAttributeValuesSet in class AttributeFactory
Returns:
The vector with the two values, for example: ["no", "yes"].

getDataSetGenerator

public MulanDataSetGenerator getDataSetGenerator()
Overrides:
getDataSetGenerator in class AttributeFactory