Package si.ijs.kt.clus.model
Interface ClusModel
- All Known Implementing Classes:
AmandaRule,ClusBoostingForest,ClusForest,ClusNode,ClusOptionNode,ClusRule,ClusRuleLinearTerm,ClusRuleSet,ClusSplitNode,COPKMeansModel,HMCAverageTreeModel,KnnModel,MyNode,ReliefModel,SimpleClusterModel
public interface ClusModel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyModelProcessors(DataTuple tuple, MyArray mproc) voidattachModel(HashMap table) intgetID()com.google.gson.JsonObjectcom.google.gson.JsonObjectcom.google.gson.JsonObjectgetModelJSON(StatisticPrintInfo info, RowData examples) intpredictWeighted(DataTuple tuple) voidprintModel(PrintWriter wrt) voidprintModel(PrintWriter wrt, StatisticPrintInfo info) voidprintModelAndExamples(PrintWriter wrt, StatisticPrintInfo info, RowData examples) voidprintModelToPythonScript(PrintWriter wrt, HashMap<String, Integer> descriptiveAttributeIndices) voidprintModelToPythonScript(PrintWriter wrt, HashMap<String, Integer> descriptiveAttributeIndices, String modelIdentifier) voidprintModelToQuery(PrintWriter wrt, ClusRun cr, int starttree, int startitem, boolean exhaustive) prune(int prunetype) void
-
Field Details
-
DEFAULT
static final int DEFAULTThe type of model returned. Default = the model that always predicts the mean of data set.- See Also:
-
ORIGINAL
static final int ORIGINALThe type of model returned. Original = the real model but without pruning. Often stored for comparison- See Also:
-
PRUNED
static final int PRUNEDThe type of model returned. PRUNED = the real model after pruning.- See Also:
-
RULES
static final int RULES- See Also:
-
PRUNE_INVALID
static final int PRUNE_INVALID- See Also:
-
TRAIN
static final int TRAIN- See Also:
-
TEST
static final int TEST- See Also:
-
-
Method Details
-
predictWeighted
- Throws:
ClusExceptionInterruptedException
-
applyModelProcessors
- Throws:
IOExceptionClusException
-
getModelSize
int getModelSize() -
getModelInfo
- Throws:
InterruptedException
-
printModel
- Throws:
InterruptedException
-
printModel
- Throws:
InterruptedException
-
printModelAndExamples
-
printModelToQuery
void printModelToQuery(PrintWriter wrt, ClusRun cr, int starttree, int startitem, boolean exhaustive) -
printModelToPythonScript
-
printModelToPythonScript
void printModelToPythonScript(PrintWriter wrt, HashMap<String, Integer> descriptiveAttributeIndices, String modelIdentifier) -
getModelJSON
com.google.gson.JsonObject getModelJSON() -
getModelJSON
-
getModelJSON
-
attachModel
- Throws:
ClusException
-
retrieveStatistics
-
prune
- Throws:
ClusException
-
getID
int getID()
-