uk.ac.ed.inf.enzml.mulan
Class MulanAttributeFactory
java.lang.Object
uk.ac.ed.inf.enzml.weka.AttributeFactory
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MulanAttributeFactory
public MulanAttributeFactory(MulanDataSetGenerator dataSetGenerator)
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