uk.ac.ed.inf.taweka.mulan.attributesfilter
Class AttributesFilter
java.lang.Object
uk.ac.ed.inf.taweka.Initialised
uk.ac.ed.inf.taweka.mulan.attributesfilter.AttributesFilter
- All Implemented Interfaces:
- Initialisable
public class AttributesFilter
- extends Initialised
This class filters the attributes of a dataset (the test set) to make it
compatible with another dataset (the train set). The result is a new dataset
that can be used as test set for the specified train set.
Main operations: 1. Attributes: only attributes present in the train set can
appear in the test set (& all of them must be present) 2. Class attributes:
for the test set are irrelevant, but are usually set to '?'. 3. Mulan XML
file (class labels): the same XML file of the training set 4. ARFF File: the
new test set arff file name should contain 'train name' + 'test name' +
'.test' 5. ARFF record: if stored in the database, should contain trace
(id/props file path) of the original training set and the other set used to
generate the new test set.
- Version:
- 3 Sep 2010
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
|
Constructor Summary |
AttributesFilter(int trainArffId,
int oldTestArffId,
java.lang.String arffDatabasePropsPath,
java.lang.String resultsPropsFileName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesFilter
public AttributesFilter(int trainArffId,
int oldTestArffId,
java.lang.String arffDatabasePropsPath,
java.lang.String resultsPropsFileName)
createNewTestArff
public int createNewTestArff()
getNewTestArff
public AttributesFilteredArff getNewTestArff()
getOldTestArff
public MulanArff getOldTestArff()
getOldTestSetArffId
public int getOldTestSetArffId()
getResultsProperties
public java.lang.String getResultsProperties()
getTrainArff
public MulanArff getTrainArff()
getTrainSetArffId
public int getTrainSetArffId()
getTrainXmlPath
public java.lang.String getTrainXmlPath()
getXmlPathById
public java.lang.String getXmlPathById(int arffId)
writeNewTestArff
public void writeNewTestArff()
main
public static void main(java.lang.String[] args)