uk.ac.ed.inf.taweka.mulan
Class MulanArff
java.lang.Object
uk.ac.ed.inf.taweka.Initialised
uk.ac.ed.inf.taweka.weka.Arff
uk.ac.ed.inf.taweka.mulan.MulanArff
- All Implemented Interfaces:
- Initialisable
- Direct Known Subclasses:
- AttributesFilteredArff
public class MulanArff
- extends Arff
Generates an Attribute Relation Format File (ARFF) in Mulan format (multiple
class labels per instance). The class attributes must be in a separate Mulan
XML file (either flat or hierarchical) to distinguish them from the normal
attributes.
Call structure: the MulanArffGenerator creates a DataSetManager which checks
the input (DataSetChecker), loads the data (MulanDataSetDbLoader), creates
the instances (MulanDataSetGenerator) and writes them as ARFF file
(DataSetWriter).
- Version:
- 10 May 2010
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
|
Constructor Summary |
MulanArff(java.lang.String dataPropsFileName,
java.lang.String resultsPropsFileName)
|
| Methods inherited from class uk.ac.ed.inf.taweka.weka.Arff |
generateAndWriteArffFile, getArffPath, getArffRecordId, getDataArffProperties, getDataDbManager, getDataPropsFilePath, getDbConn, getDbReader, getResultsDbManager, loadAndGenerateArff, setArffRecordId |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MulanArff
public MulanArff(java.lang.String dataPropsFileName,
java.lang.String resultsPropsFileName)
getDataSetManager
public MulanDataSetManager getDataSetManager()
- Overrides:
getDataSetManager in class Arff
getXmlPath
public java.lang.String getXmlPath()
setDataSetManager
public void setDataSetManager()
- Overrides:
setDataSetManager in class Arff
getXMLpathFromArffPath
public static java.lang.String getXMLpathFromArffPath(java.lang.String arffPath)
- Generates the xml file path: same name+path as .arff file, but .xml
termination
- Parameters:
arffPath - the path to the arff file
- Returns:
- the same filename+directorypath of the arff file but with the
termination .xml instead of .arff
main
public static void main(java.lang.String[] args)