public class SSFileEnvironment extends java.lang.Object implements Environment
This is the base class for all the single step problems environments that read the examples from a file. It uses the Dataset API to get all the information needed from the file.
Constructor and Description |
---|
SSFileEnvironment(java.lang.String fileName,
boolean readAttrInfo)
It's the constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
beginSequentialExamples()
It initializes at the first example.
|
int |
getCurrentClass()
Returns the class of the current example
|
double[] |
getCurrentState()
The function returns the current state.
|
int |
getNumberOfExamples()
It return the number of the examples of the database.
|
double[] |
getSequentialState()
It returns the new Example of a single step file environment.
|
double[] |
newState()
Does create a new state of the problem.
|
public SSFileEnvironment(java.lang.String fileName, boolean readAttrInfo)
fileName
- is the database file namereadAttrInfo
- indicate if the attribute information has to be read.public double[] getCurrentState()
getCurrentState
in interface Environment
public int getCurrentClass()
getCurrentClass
in interface Environment
public double[] newState()
newState
in interface Environment
public void beginSequentialExamples()
beginSequentialExamples
in interface Environment
public double[] getSequentialState()
getSequentialState
in interface Environment
public int getNumberOfExamples()
getNumberOfExamples
in interface Environment