public class CrossValidationFoldPath
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
boolean |
useFieldHeadings |
Tells if each cross-validation and fold value should be preceded by a heading and colon.
|
Constructor | Description |
---|---|
CrossValidationFoldPath() |
Sole constructor.
|
CrossValidationFoldPath(java.util.ArrayList<CrossValidationFoldPathStep> steps) |
Creates cross validation fold execution path using given steps.
|
Modifier and Type | Method | Description |
---|---|---|
int |
addStep(CrossValidationFoldPathStep step) |
Adds a step to this cross validation fold execution path.
|
void |
appendToFile(java.lang.String filePath,
int crossValidationIndex,
int foldIndex) |
Appends textual representation of this cross validation fold execution path to a file with given path.
|
java.lang.String |
getDescription() |
Gets description of this cross validation fold execution path.
|
double[] |
getErrors() |
Gets errors of this execution path.
|
java.lang.String[] |
getErrorsNames() |
Gets errors names.
|
int |
getNumberOfSteps() |
Gets the number of steps in this cross validation fold execution path
|
java.lang.String |
getShortDescription() |
Gets short description of this cross validation fold execution path.
|
CrossValidationFoldPathStep |
getStep(int stepIndex) |
Gets a step from this cross validation fold execution path.
|
void |
setErrors(double[] errors) |
Sets errors of this execution path.
|
void |
setErrorsNames(java.lang.String[] errorsNames) |
Sets errors names.
|
java.lang.String |
toString() |
Gets textual representation of this cross validation fold execution path
|
public boolean useFieldHeadings
appendToFile(String, int, int)
.public CrossValidationFoldPath()
public CrossValidationFoldPath(java.util.ArrayList<CrossValidationFoldPathStep> steps)
steps
- steps of a cross validation fold execution pathpublic void setErrors(double[] errors)
errors
- execution path errorspublic void setErrorsNames(java.lang.String[] errorsNames)
errorsNames
- errors namespublic double[] getErrors()
public java.lang.String[] getErrorsNames()
public int addStep(CrossValidationFoldPathStep step)
step
- a step to add to this cross validation fold execution pathpublic CrossValidationFoldPathStep getStep(int stepIndex)
stepIndex
- index of a step in this cross validation fold execution pathInvalidValueException
- when step index is lower than zero
or not lower than the number of steps stored in this execution pathpublic int getNumberOfSteps()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescription()
public java.lang.String getShortDescription()
public void appendToFile(java.lang.String filePath, int crossValidationIndex, int foldIndex) throws java.io.IOException
filePath
- path to a file where this cross validation fold execution path should be appendedcrossValidationIndex
- index of a cross validation that this cross validation fold execution path belongs tofoldIndex
- index of a cross validation fold that this cross validation fold execution path belongs tojava.io.IOException
- when file with given path cannot be open for write