uk.ac.ed.inf.taweka.weka
Class Arff
java.lang.Object
uk.ac.ed.inf.taweka.Initialised
uk.ac.ed.inf.taweka.weka.Arff
- All Implemented Interfaces:
- Initialisable
- Direct Known Subclasses:
- MulanArff
public class Arff
- extends Initialised
Creates an ARFF file: checks file properties, loads data from database, fills
and writes to file the ARFF attributes, classes and instances, generates
auxiliary files if needed.
- Version:
- 22 Apr 2010
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
|
Field Summary |
static java.lang.String |
ARFF_TABLE
The name of the table to save the arff file details to |
static java.lang.String |
AUTHOR
|
static java.lang.String |
TAWEKA_NAME
|
static java.lang.String |
VERSION
|
static java.lang.String |
WEB_PAGE
|
|
Constructor Summary |
Arff(java.lang.String dataPropsFilePath,
java.lang.String resultPropsFilePath)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARFF_TABLE
public static final java.lang.String ARFF_TABLE
- The name of the table to save the arff file details to
- See Also:
- Constant Field Values
AUTHOR
public static final java.lang.String AUTHOR
- See Also:
- Constant Field Values
TAWEKA_NAME
public static final java.lang.String TAWEKA_NAME
- See Also:
- Constant Field Values
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
WEB_PAGE
public static final java.lang.String WEB_PAGE
- See Also:
- Constant Field Values
Arff
public Arff(java.lang.String dataPropsFilePath,
java.lang.String resultPropsFilePath)
generateAndWriteArffFile
public int generateAndWriteArffFile()
- The core of TaWeka: save properties to experiment table, load data from
data database and save arff to file
getArffPath
public java.lang.String getArffPath()
getArffRecordId
public int getArffRecordId()
getDataArffProperties
public ArffProperties getDataArffProperties()
getDataDbManager
public uk.ac.ed.inf.utils.database.DbManager getDataDbManager()
getDataPropsFilePath
public java.lang.String getDataPropsFilePath()
getDataSetManager
public DataSetManager getDataSetManager()
getDbConn
public uk.ac.ed.inf.utils.database.DbConn getDbConn()
getDbReader
public uk.ac.ed.inf.utils.database.DbReader getDbReader()
getResultsDbManager
public uk.ac.ed.inf.utils.database.DbManager getResultsDbManager()
loadAndGenerateArff
public void loadAndGenerateArff()
setArffRecordId
public int setArffRecordId(int arffRecordId)
- Sets the arff record id and returns it for further use.
- Parameters:
arffRecordId - the table id for this arff file details
- Returns:
- the table id for this arff file details
setDataSetManager
public void setDataSetManager()
main
public static void main(java.lang.String[] args)