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 TypeMethodDescriptionvoid
applyModelProcessors
(DataTuple tuple, MyArray mproc) void
attachModel
(HashMap table) int
getID()
com.google.gson.JsonObject
com.google.gson.JsonObject
com.google.gson.JsonObject
getModelJSON
(StatisticPrintInfo info, RowData examples) int
predictWeighted
(DataTuple tuple) void
printModel
(PrintWriter wrt) void
printModel
(PrintWriter wrt, StatisticPrintInfo info) void
printModelAndExamples
(PrintWriter wrt, StatisticPrintInfo info, RowData examples) void
printModelToPythonScript
(PrintWriter wrt, HashMap<String, Integer> descriptiveAttributeIndices) void
printModelToPythonScript
(PrintWriter wrt, HashMap<String, Integer> descriptiveAttributeIndices, String modelIdentifier) void
printModelToQuery
(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:
ClusException
InterruptedException
-
applyModelProcessors
- Throws:
IOException
ClusException
-
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()
-