|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.sota.logic.SotaManager
public class SotaManager
| Field Summary | |
|---|---|
static double |
LR_ANCESTOR
Default value of the ancestor learningrate. |
static double |
LR_ANCESTOR_MAX
Maximal value of the ancestor learningrate. |
static double |
LR_ANCESTOR_MIN
Minimal value of the ancestor learningrate. |
static double |
LR_SISTER
Default value of the sister learningrate. |
static double |
LR_SISTER_MAX
Maximal value of the ancestor learningrate. |
static double |
LR_SISTER_MIN
Minimal value of the ancestor learningrate. |
static double |
LR_WINNER
Default value of the Winner learningrate. |
static double |
LR_WINNER_MAX
Maximal value of the Winner learningrate. |
static double |
LR_WINNER_MIN
Minimal value of the Winner learningrate. |
static double |
MIN_ERROR
Default value of minimal error. |
static double |
MIN_ERROR_MAX
Maximal value of minimal error. |
static double |
MIN_ERROR_MIN
Minimal value of minimal error. |
static double |
MIN_RESOURCE
Default value of minimal resource. |
static double |
MIN_RESOURCE_MAX
Maximal value of minimal resource. |
static double |
MIN_RESOURCE_MIN
Minimal value of minimal resource. |
static double |
MIN_VARIABILITY
Default value of minimal variability. |
static double |
MIN_VARIABILITY_MAX
Maximal value of minimal variability. |
static double |
MIN_VARIABILITY_MIN
Minimal value of minimal variability. |
static boolean |
USE_HIERARCHICAL_FUZZY_DATA
Is hierarchical fuzzy data used or not . |
static boolean |
USE_VARIABILITY
Default flag setting. |
| Constructor Summary | |
|---|---|
SotaManager()
Creates new instance of SotaManager with default settings. |
|
| Method Summary | |
|---|---|
double |
doCycle()
Computes one cycle of the sota algorithm, does the spilt afterwards and returns the variability. |
double |
doEpoch()
Computes one epoch of the sota algorithm and retunrs the error of the tree after this epoch. |
double |
doTraining()
Trains the tree as many cycles as it takes to reduce the variability value to the given minimum and returns the variability value. |
static void |
getCells(ArrayList<SotaTreeCell> cells,
SotaTreeCell currentCell)
Collects all cells of the tree recursive. |
double |
getCycle()
|
int |
getDimension()
|
String |
getDistance()
|
double |
getEpoch()
|
ExecutionMonitor |
getExecutionMonitor()
|
DataArray |
getInDataContainer()
|
double |
getLearningrateAncestor()
|
double |
getLearningrateSister()
|
double |
getLearningrateWinner()
|
int |
getMaxHierarchicalLevel()
|
double |
getMinError()
|
double |
getMinResource()
|
double |
getMinVariability()
|
DataArray |
getOriginalData()
Returns the original DataTableSpec. |
SotaTreeCell |
getRoot()
|
static void |
initDefaultLocations(HashMap<SotaTreeCell,SotaTreeCellLocations> cellLocations,
SotaTreeCell currentCell)
|
void |
initializeTree(DataTable inData,
DataArray originalData,
ExecutionMonitor exec,
int indexOfClassColumn)
Initializes the tree by creating the root node and two children cells of the root node. |
boolean |
isTrained()
|
boolean |
isUseHierarchicalFuzzyData()
|
boolean |
isUseVariability()
|
void |
readSettings(NodeSettingsRO settings,
boolean validateOnly)
Reads settings out of given NodeSettings object and validates it. |
void |
reset()
Resets the SotaManager. |
void |
saveSettingsTo(NodeSettingsWO settings)
Saves settings of algorithm to given NodeSettings object. |
void |
setDistance(String distance)
|
void |
setInData(DataArray inData)
Sets in data. |
void |
setLearningrateAncestor(double ancestor)
|
void |
setLearningrateSister(double sister)
|
void |
setLearningrateWinner(double winner)
|
void |
setMaxHierarchicalLevel(int maxLevel)
Sets the maximum heirarchical level. |
void |
setMinError(double error)
|
void |
setMinResource(double resource)
|
void |
setMinVariability(double variability)
|
void |
setOriginalData(DataArray origData)
Sets original data. |
void |
setRoot(SotaTreeCell root)
Sets the root node. |
void |
setUseHierarchicalFuzzyData(boolean hierarchicalFuzzyData)
|
void |
setUseVariability(boolean variability)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double LR_WINNER
public static final double LR_WINNER_MIN
public static final double LR_WINNER_MAX
public static final double LR_ANCESTOR
public static final double LR_ANCESTOR_MIN
public static final double LR_ANCESTOR_MAX
public static final double LR_SISTER
public static final double LR_SISTER_MIN
public static final double LR_SISTER_MAX
public static final double MIN_VARIABILITY
public static final double MIN_VARIABILITY_MIN
public static final double MIN_VARIABILITY_MAX
public static final double MIN_RESOURCE
public static final double MIN_RESOURCE_MIN
public static final double MIN_RESOURCE_MAX
public static final double MIN_ERROR
public static final double MIN_ERROR_MIN
public static final double MIN_ERROR_MAX
public static final boolean USE_VARIABILITY
public static final boolean USE_HIERARCHICAL_FUZZY_DATA
| Constructor Detail |
|---|
public SotaManager()
| Method Detail |
|---|
public void reset()
public void initializeTree(DataTable inData,
DataArray originalData,
ExecutionMonitor exec,
int indexOfClassColumn)
throws CanceledExecutionException
inData - the table with the input dataoriginalData - the original dataexec - the execution monitor to setindexOfClassColumn - The index of the column containing the class
information. If value is -1 class values are ignored.
CanceledExecutionException - if user canceled the process
public double doTraining()
throws CanceledExecutionException
CanceledExecutionException - if training has been canceled
public double doCycle()
throws CanceledExecutionException
CanceledExecutionException - if user canceled the process
public double doEpoch()
throws CanceledExecutionException
CanceledExecutionException - is execution was canceled.
public static void getCells(ArrayList<SotaTreeCell> cells,
SotaTreeCell currentCell)
cells - the ArrayList to store the cells incurrentCell - the current cell to check
public static void initDefaultLocations(HashMap<SotaTreeCell,SotaTreeCellLocations> cellLocations,
SotaTreeCell currentCell)
public double getLearningrateAncestor()
public void setLearningrateAncestor(double ancestor)
ancestor - the learningrateAncestor to setpublic double getLearningrateSister()
public void setLearningrateSister(double sister)
sister - the learningrateSister to setpublic double getLearningrateWinner()
public void setLearningrateWinner(double winner)
winner - the learningrateWinner to setpublic double getMinError()
public void setMinError(double error)
error - the minError to setpublic double getMinResource()
public void setMinResource(double resource)
resource - the minResource to setpublic double getMinVariability()
public void setMinVariability(double variability)
variability - the minVariability to setpublic int getDimension()
public DataArray getInDataContainer()
public SotaTreeCell getRoot()
public double getCycle()
public double getEpoch()
public ExecutionMonitor getExecutionMonitor()
public boolean isUseVariability()
public void setUseVariability(boolean variability)
variability - the useVariability to setpublic String getDistance()
public void setDistance(String distance)
distance - the distance to setpublic boolean isUseHierarchicalFuzzyData()
public void setUseHierarchicalFuzzyData(boolean hierarchicalFuzzyData)
hierarchicalFuzzyData - the useHierarchicalFuzzyData to setpublic boolean isTrained()
public int getMaxHierarchicalLevel()
public void saveSettingsTo(NodeSettingsWO settings)
settings - NodeSettings object to store settings in
public void readSettings(NodeSettingsRO settings,
boolean validateOnly)
throws InvalidSettingsException
settings - NodeSettings object to get settings fromvalidateOnly - if true, settings will be validated
only, if false, settings will be stored in
algorithm
InvalidSettingsException - will be thrown if given settings are not
validpublic DataArray getOriginalData()
public void setMaxHierarchicalLevel(int maxLevel)
maxLevel - the maximum heirarchical level to setpublic void setRoot(SotaTreeCell root)
root - the root node to setpublic void setInData(DataArray inData)
inData - in data to setpublic void setOriginalData(DataArray origData)
origData - original data to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||