public class KeelToUci extends Exporter
KeelToUci
This class extends from the Exporter class. It is used to read data with KEEL format and transform them to the UCI format. This 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".Constructor and Description |
---|
KeelToUci(java.lang.String nullValueUser,
java.lang.String separatorUser)
KeelToUci class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Save(java.lang.String pathnameOutputNames,
java.lang.String pathnameOutputData)
Method that creates the output files with UCI format given as parameter
using all the structures built by the start method of the Exporter class.
|
void |
Start(java.lang.String pathnameInput,
java.lang.String pathnameOutputData,
java.lang.String pathnameOutputNames)
Method used to transform the data from the KEEL file given as parameter to
UCI format files which will be stored in the second file given.
|
public KeelToUci(java.lang.String nullValueUser, java.lang.String separatorUser)
nullValueUser.
- Null value symbols.separatorUser.
- Separator symbols used in the csv format.public void Start(java.lang.String pathnameInput, java.lang.String pathnameOutputData, java.lang.String pathnameOutputNames) throws java.lang.Exception
pathnameInput
- KEEL file path.pathnameOutputData
- UCI data file path.pathnameOutputNames
- UCI names file path.java.lang.Exception
- if the files can not be read or written.public void Save(java.lang.String pathnameOutputNames, java.lang.String pathnameOutputData) throws java.lang.Exception
pathnameOutputNames
- UCI names file path to generate (".names").pathnameOutputData
- UCI data file path to generate (".data").java.lang.Exception
- if the file can not be written.