uk.ac.ed.inf.csb.taweka.mulan
Class MulanAttributeFactory

java.lang.Object
  extended by uk.ac.ed.inf.csb.taweka.AttributeFactory
      extended by uk.ac.ed.inf.csb.taweka.mulan.MulanAttributeFactory

public class MulanAttributeFactory
extends AttributeFactory

Class

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(DataSetWriter dataSet)
           
 
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.
 
Methods inherited from class uk.ac.ed.inf.csb.taweka.AttributeFactory
generateNominalAttribute, generateNominalAttributeWithDummy, getAttributeByName, getAttributes, 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(DataSetWriter dataSet)
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"].