public class UciToKeel extends Importer
UciToKeel
This class extends from the Importer class. It is used to read data with UCI format and transform them to the KEEL format. UCI format has two different files: - Name file that stores all the names of the attributes and class ".names". - Data file with all the data ".data".processHeader
Constructor and Description |
---|
UciToKeel(java.lang.String separatorUser)
UciToKeel class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Save(java.lang.String pathnameOutput)
Method that creates the output file with KEEL format given as parameter
using all the structures built by the start method.
|
void |
Start(java.lang.String pathnameInputNames,
java.lang.String pathnameInputData,
java.lang.String pathnameOutput)
Method used to transform the data from the UCI file given as parameter to
KEEL format file which will be stored in the second file given.
|
DataType, setProcessHeader, UcFirst
public UciToKeel(java.lang.String separatorUser)
separatorUser.
- Separator symbols used in the csv format.public void Start(java.lang.String pathnameInputNames, java.lang.String pathnameInputData, java.lang.String pathnameOutput) throws java.lang.Exception
pathnameInputNames
- UCI names file path.pathnameInputData
- UCI data file path.pathnameOutput
- KEEL file path.java.lang.Exception
- if the files can not be read or written.public void Save(java.lang.String pathnameOutput) throws java.lang.Exception