|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.meta.xvalidation.XValidateSettings
public class XValidateSettings
Simple class for managing the cross validation settings.
| Constructor Summary | |
|---|---|
XValidateSettings()
|
|
| Method Summary | |
|---|---|
String |
classColumn()
Returns the class column's name for stratified sampling. |
void |
classColumn(String classColumn)
Sets the class column's name for stratified sampling. |
boolean |
leaveOneOut()
Returns if leave-one-out cross validation should be performed. |
void |
leaveOneOut(boolean b)
Sets if leave-one-out cross validation should be performed. |
void |
loadSettingsFrom(NodeSettingsRO settings)
Loads the settings from the node settings object. |
boolean |
randomSampling()
Returns if the rows of the input table should be sampled randomly. |
void |
randomSampling(boolean randomSampling)
Sets if the rows of the input table should be sampled randomly. |
void |
saveSettingsTo(NodeSettingsWO settings)
Writes the settings into the node settings object. |
boolean |
stratifiedSampling()
Returns if the rows of the input table should be sampled stratified. |
void |
stratifiedSampling(boolean stratifiedSampling)
Sets if the rows of the input table should be sampled stratified. |
short |
validations()
Returns the number of validation runs that should be performed. |
void |
validations(short validations)
Sets the number of validation runs that should be performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XValidateSettings()
| Method Detail |
|---|
public boolean leaveOneOut()
true if leave-one-out should be done,
false otherwisepublic void leaveOneOut(boolean b)
b - true if leave-one-out should be done,
false otherwisepublic void saveSettingsTo(NodeSettingsWO settings)
settings - a node settings object
public void loadSettingsFrom(NodeSettingsRO settings)
throws InvalidSettingsException
settings - a node settings object
InvalidSettingsException - if some settings are missingpublic boolean randomSampling()
true if the should be sampled randomly,
false otherwisepublic void randomSampling(boolean randomSampling)
randomSampling - true if the should be sampled
randomly, false otherwisepublic boolean stratifiedSampling()
true if the should be sampled stratified,
false otherwisepublic void stratifiedSampling(boolean stratifiedSampling)
stratifiedSampling - true if the should be sampled
stratified, false otherwisepublic String classColumn()
public void classColumn(String classColumn)
classColumn - the class column's namepublic short validations()
public void validations(short validations)
validations - the number of validation runs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||