|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object yawn.envs.Environment
public abstract class Environment
Specifies methods that should provide a way to interact with a test
environment. In particular, it allows to read training and test data and to
write predictions.
$Id: Environment.java,v 1.4 2005/04/07 17:28:27 supermarti Exp $
Constructor Summary | |
---|---|
Environment()
|
Method Summary | |
---|---|
abstract int |
getNumberOfSystemRuns()
Returns the number of times the system will be run. |
abstract Pattern[] |
getTestDatasetInputs(int runNumber)
Reads a test dataset from the environment. |
abstract InputOutputPattern[] |
getTrainingDataset(int runNumber)
Reads a train file from the environment. |
abstract int |
inputSize()
|
abstract int |
outputSize()
|
abstract void |
setNumberOfSystemRuns(int numberOfRuns)
|
java.lang.String |
toString()
|
abstract void |
validate()
|
abstract void |
writeResults(Pattern[] results,
int runNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Environment()
Method Detail |
---|
public abstract int getNumberOfSystemRuns()
public abstract void setNumberOfSystemRuns(int numberOfRuns)
public abstract InputOutputPattern[] getTrainingDataset(int runNumber) throws EnvironmentException
runNumber
- the number of the current system run
InputOutputPattern
EnvironmentException
public abstract Pattern[] getTestDatasetInputs(int runNumber) throws EnvironmentException
runNumber
- the number of the current system run
EnvironmentException
public abstract void writeResults(Pattern[] results, int runNumber) throws EnvironmentException
EnvironmentException
public abstract void validate() throws ValidationException
ValidationException
public java.lang.String toString()
toString
in class java.lang.Object
public abstract int inputSize()
public abstract int outputSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |