public class parseParameters
extends java.lang.Object
It reads the configuration file (data-set files and parameters)
Constructor and Description |
---|
parseParameters()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName()
Gets the name of the algorithm
|
java.lang.String |
getAssociationMeasuresFile()
Gets the name of the measure file
|
java.lang.String |
getAssociationRulesFile()
Gets the name of the rule file
|
java.lang.String |
getOutputFileTra()
Gets the name of the output for train file
|
java.lang.String |
getOutputFileTst()
Gets the name of the output for test file
|
java.lang.String |
getParameter(int pos)
Gets a string with the parameter of a determined position used by the algorithm
|
java.lang.String[] |
getParameters()
Gets an array with the parameters used by the algorithm
|
java.lang.String |
getTestInputFile()
Gets the name of the test file
|
java.lang.String |
getTransactionsInputFile()
Gets the name of the train file
|
void |
parseConfigurationFile(java.lang.String fileName)
It obtains all the necesary information from the configuration file.
|
public void parseConfigurationFile(java.lang.String fileName)
It obtains all the necesary information from the configuration file.
First of all it reads the name of the input data-sets, training, validation and test.
Then it reads the name of the output files, where the training (validation) and test outputs will be stored
Finally it reads the parameters of the algorithm, such as the random seed.
fileName
- Name of the configuration filepublic java.lang.String getTransactionsInputFile()
Gets the name of the train file
public java.lang.String getTestInputFile()
Gets the name of the test file
public java.lang.String getAssociationRulesFile()
Gets the name of the rule file
public java.lang.String getAssociationMeasuresFile()
Gets the name of the measure file
public java.lang.String getOutputFileTra()
Gets the name of the output for train file
public java.lang.String getOutputFileTst()
Gets the name of the output for test file
public java.lang.String getAlgorithmName()
Gets the name of the algorithm
public java.lang.String[] getParameters()
Gets an array with the parameters used by the algorithm
public java.lang.String getParameter(int pos)
Gets a string with the parameter of a determined position used by the algorithm
pos
- Position of the parameter