public class Parameters
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.Vector |
additional_outputs |
java.util.Vector |
configs |
boolean |
cost_instance |
int |
crisp |
java.util.Vector<java.lang.String> |
dataset_used |
java.util.Vector |
defaultValue |
java.util.Vector |
descriptions |
java.util.Vector |
domain |
boolean |
fuzzy |
java.util.Vector |
hidden |
java.util.Vector |
outputs_tra |
java.util.Vector |
outputs_tst |
java.util.Vector |
parameterType |
java.util.Vector |
tra_val |
java.util.Vector |
tst_val |
java.util.Vector |
value |
Constructor and Description |
---|
Parameters()
Default builder
|
Parameters(Parameters param)
Builder that copies another Parametros object
|
Parameters(java.lang.String fileName,
boolean test)
Read pattern file
|
Modifier and Type | Method and Description |
---|---|
void |
addSeed(java.lang.String input)
adds seed
|
void |
clearSeeds()
removes all seeds
|
void |
copyParameters(Parameters param)
Copy the parameters to this object
|
java.util.Vector |
getAdditionalOutputFiles()
return additional output files
|
java.lang.String |
getAlgorithmType()
Gets the algorithm type
|
java.util.Vector |
getConfigs()
return config files generated by method
|
boolean |
getCost_instances()
Gets cost instances
|
int |
getCrisp()
Get crisp status
|
java.util.Vector |
getdataset_used()
Gets datasets useds
|
java.lang.String |
getDefaultValue(int index)
return default value for parameter at index position
|
java.util.Vector |
getDefaultValues()
return parameter default values
|
java.lang.String |
getDescriptions(int index)
return parameter name for parameter at index position
|
java.util.Vector |
getDomain(int index)
return parameter domain for parameter at index position
|
java.util.Vector |
getDomains()
return parameter domains
|
java.lang.String |
getDomainValue(int index,
int pos)
returns domain value at position pos for parameter at index position
|
int |
getExe()
return number of executions
|
boolean |
getFuzzy()
Get fuzzy status
|
java.util.Vector |
getHidden()
Gets the hidden parameters
|
boolean |
getIfSeed()
Checks if the algorithm need seed
|
int |
getNumInputs()
return number of input connections
|
int |
getNumOutputs()
return number of extra outputs
|
int |
getNumParameters()
Gets the number of parameters
|
int |
getNVisibleParams()
Gets the number of visible paramters
|
java.lang.String |
getParameterType(int index)
return parameter name for parameter at index position
|
java.util.Vector |
getParameterTypes()
return parameter types
|
java.lang.String |
getSeed(int index)
return seed at index position
|
java.util.Vector |
getSeeds()
return actual seeds
|
java.util.Vector |
getTestFiles()
return original test files
|
java.util.Vector |
getTestOutputFiles()
return .tst output files
|
java.util.Vector |
getTrainingOutputFiles()
return .tra output files
|
java.util.Vector |
getTrainingValidationFiles()
return training files to validate
|
java.lang.String |
getValue(int index)
return actual value for parameter at index position
|
java.util.Vector |
getValues()
return actual values
|
boolean |
isCost_instance()
Is cost instance
|
int |
isCrisp()
Is crisp
|
boolean |
isFuzzy()
Is fuzzy
|
boolean |
isHidden(int i)
Checks if the parameter at position i is hidden
|
boolean |
isProbabilistic()
returns if algorithm use seeds
|
void |
removeSeed(java.lang.String input)
removes seed
|
void |
setAlgorithmType(java.lang.String type)
Sets the algorithm type
|
void |
setcost_instance(boolean cost)
Set cost instance
|
void |
setcrisp(int cr)
Set crisp
|
java.util.Vector |
setDescriptions()
return parameter names
|
void |
setExe(int executions)
modify number of executions
|
void |
setfuzzy(boolean fuz)
Set fuzzy status
|
void |
setIfSeed(boolean seed)
Sets the need for seed of the algorithm
|
void |
setNumInputs(int n)
sets the number of inputs connections
|
void |
setNumOutputs(int n)
Sets the number of extra outputs
|
void |
setNumParameters(int n)
Sets the number of paramters
|
void |
setSeeds(java.util.Vector s)
Sets the new seeds
|
void |
setValue(int index,
java.lang.String input)
updates actual value for parameter at index position
|
void |
setValues(java.util.Vector input)
updates value vector
|
void |
writeScripts(java.lang.String path,
java.lang.String baseName,
java.lang.String methodName,
java.lang.String problemName,
java.util.Vector set,
java.lang.String result,
boolean pre,
int valType,
int numFolds,
int expType)
Write a configuration script for the method, employing its parameters
|
void |
writeTestScripts(java.lang.String path,
java.lang.String baseName,
java.lang.String methodName,
java.lang.String problemName,
java.util.Vector set,
java.lang.String result,
boolean pre,
java.lang.String fullName,
java.lang.String relationBBDD,
int type)
Write a configuration script for the test, employing its parameters
|
public java.util.Vector descriptions
public java.util.Vector parameterType
public java.util.Vector domain
public java.util.Vector defaultValue
public java.util.Vector value
public java.util.Vector hidden
public java.util.Vector outputs_tra
public java.util.Vector outputs_tst
public java.util.Vector tra_val
public java.util.Vector tst_val
public java.util.Vector configs
public java.util.Vector additional_outputs
public java.util.Vector<java.lang.String> dataset_used
public boolean cost_instance
public int crisp
public boolean fuzzy
public Parameters()
public Parameters(Parameters param)
param
- reference objectpublic Parameters(java.lang.String fileName, boolean test)
fileName
- the XML file with the parameterstest
- true if this parameter file correspond to a test algorithmpublic java.lang.String getAlgorithmType()
public void setAlgorithmType(java.lang.String type)
type
- the new algorithm typepublic int getNumParameters()
public void setNumParameters(int n)
n
- the new number of parameterspublic boolean getIfSeed()
public void setIfSeed(boolean seed)
seed
- the status for the need of seedpublic int getNVisibleParams()
public boolean isProbabilistic()
public int getNumOutputs()
public void setNumOutputs(int n)
n
- the new number of extra outputspublic int getNumInputs()
public void setNumInputs(int n)
n
- the new number of inputspublic java.util.Vector getSeeds()
public void setSeeds(java.util.Vector s)
s
- vector with the new seedspublic java.lang.String getSeed(int index)
index
- the index of the seedpublic int getExe()
public void setExe(int executions)
executions
- the new number of executionspublic java.util.Vector setDescriptions()
public java.lang.String getDescriptions(int index)
index
- the index of the parameterpublic java.util.Vector getHidden()
public boolean isHidden(int i)
i
- position of the parameterpublic java.util.Vector getParameterTypes()
public java.lang.String getParameterType(int index)
index
- the index of the parameterpublic java.util.Vector getDomains()
public java.util.Vector getDomain(int index)
index
- The position of the indexed parameterpublic java.lang.String getDomainValue(int index, int pos)
index
- the index of the parameterpos
- the position of the value of the parameterpublic java.util.Vector getDefaultValues()
public java.lang.String getDefaultValue(int index)
index
- the index of the parameterpublic java.util.Vector getValues()
public java.lang.String getValue(int index)
index
- the index of the parameterpublic void setValues(java.util.Vector input)
input
- the new vector with all the valuespublic void setValue(int index, java.lang.String input)
index
- the position of the parameterinput
- the new valuepublic void removeSeed(java.lang.String input)
input
- the seed to be removedpublic void addSeed(java.lang.String input)
input
- the seed to be addedpublic void clearSeeds()
public java.util.Vector getTrainingOutputFiles()
public java.util.Vector getTestOutputFiles()
public java.util.Vector getTrainingValidationFiles()
public java.util.Vector getTestFiles()
public java.util.Vector getdataset_used()
public boolean getCost_instances()
public boolean getFuzzy()
public int getCrisp()
public boolean isCost_instance()
public int isCrisp()
public boolean isFuzzy()
public void setcost_instance(boolean cost)
cost
- Type of costpublic void setcrisp(int cr)
cr
- Id of crisppublic void setfuzzy(boolean fuz)
fuz
- Fuzzy statuspublic java.util.Vector getAdditionalOutputFiles()
public java.util.Vector getConfigs()
public void copyParameters(Parameters param)
param
- the reference parameters object to be copiedpublic void writeScripts(java.lang.String path, java.lang.String baseName, java.lang.String methodName, java.lang.String problemName, java.util.Vector set, java.lang.String result, boolean pre, int valType, int numFolds, int expType)
path
- Path of the methodbaseName
- Baseline name of the config filesmethodName
- Name of the methodproblemName
- Name of the problemset
- Set of input filesresult
- Baseline name of result filespre
- True if this is a preprocess methodvalType
- Type of validation (0- k-Fold 1- 5x2 2- None)numFolds
- Number of folds in cross validationextType
- Type of experimentpublic void writeTestScripts(java.lang.String path, java.lang.String baseName, java.lang.String methodName, java.lang.String problemName, java.util.Vector set, java.lang.String result, boolean pre, java.lang.String fullName, java.lang.String relationBBDD, int type)
path
- Path of the methodbaseName
- Baseline name of the config filesmethodName
- Name of the methodproblemName
- Name of the problemset
- Set of input filesresult
- Baseline name of result filespre
- True if this is a preprocess methodfullName
- List of algorithms testedrelationBBDD
- Names of the database employed