Package si.ijs.kt.clus.ext.ilevelc
Class ILevelCInduce
java.lang.Object
si.ijs.kt.clus.algo.ClusInductionAlgorithm
si.ijs.kt.clus.algo.tdidt.DepthFirstInduce
si.ijs.kt.clus.ext.ilevelc.ILevelCInduce
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected ClusNodeprotected NodeTestprotected ArrayList<ILevelConstraint>protected int[][]protected doubleprotected intprotected doubleprotected intprotected intprotected ClusNormalizedAttributeWeightsprotected RowDataSortHelperFields inherited from class si.ijs.kt.clus.algo.tdidt.DepthFirstInduce
m_Find_MinMax, m_FindBestTest, m_Root, SHOW_INDUCE_PROGRESSFields inherited from class si.ijs.kt.clus.algo.ClusInductionAlgorithm
m_Schema, m_StatManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]assignAllInstances(ClusNode root) voidassignAllInstances(ClusNode tree, int[] clusters) voidassignLabels(ILevelCHeurStat a, ILevelCHeurStat b, ClusNode root, int parlabel, int nb) computeCHeurStat(ClusNode leaf, ClusNode par, int[] ie, int[] clusters) doublecomputeHeuristic(int violated, double ss) doublecomputeHeuristic(ILevelCHeurStat pos, ILevelCHeurStat neg, ILevelCStatistic ps, boolean use_p_lab, double ss_offset, int nb_violated) intcountLabel(ClusNode tree, int label) intcountViolatedConstaints(int[] clusters) int[]countViolatedConstaints(RowData data, int[] clusters) createConstraints(RowData data, int nbRows) int[][]int[]voidenterBestTest(ClusNode tree, ClusNode root, int[] clusters) voidfindNumericConstraints(NumericAttrType at, ClusNode leaf, boolean use_p_lab, double ss_offset, int violated_offset, int violated_leaf, int[] clusters) intgetSubsetConstraints(RowData data) voidiLevelCInduce(ClusNode root) voidvoidstoreLabels(ClusNode leaf, ILevelCHeurStat stat) voidtryEachLeaf(ClusNode tree, ClusNode root, int violated, double ss, int[] clusters) voidtryGivenLeaf(ClusNode leaf, boolean use_p_lab, int violated, double ss, int[] clusters) inttryLabel(ILevelCHeurStat a, ILevelCHeurStat b, int parlabel, int nb) Methods inherited from class si.ijs.kt.clus.algo.tdidt.DepthFirstInduce
cleanSplit, filterAlternativeSplits, getBestTest, getDescriptiveAttributes, getFindBestTest, induce, induceSingleUnpruned, induceSingleUnpruned, initialize, initSelectorAndSplit, initSelectorAndStopCrit, makeLeaf, rankFeatures, setInitialDataMethods inherited from class si.ijs.kt.clus.algo.ClusInductionAlgorithm
createData, createTotalClusteringStat, createTotalTargetStat, getPreprocs, getSchema, getSettings, getStatManager, induceAll, initializeHeuristic, isModelWriter, writeModel
-
Field Details
-
m_BestTest
-
m_BestLeaf
-
m_SortHelper
-
m_BestHeur
protected double m_BestHeur -
m_NbClasses
protected int m_NbClasses -
m_MaxNbClasses
protected int m_MaxNbClasses -
m_MinLeafWeight
protected double m_MinLeafWeight -
m_NbTrain
protected int m_NbTrain -
m_GlobalSS
protected double m_GlobalSS -
m_Constraints
-
m_ConstraintsIndex
protected int[][] m_ConstraintsIndex -
m_Scale
-
-
Constructor Details
-
ILevelCInduce
- Throws:
ClusExceptionIOException
-
-
Method Details
-
createConstraintsIndex
public int[][] createConstraintsIndex() -
getSubsetConstraints
-
createIE
-
computeHeuristic
public double computeHeuristic(int violated, double ss) -
computeHeuristic
public double computeHeuristic(ILevelCHeurStat pos, ILevelCHeurStat neg, ILevelCStatistic ps, boolean use_p_lab, double ss_offset, int nb_violated) -
findNumericConstraints
public void findNumericConstraints(NumericAttrType at, ClusNode leaf, boolean use_p_lab, double ss_offset, int violated_offset, int violated_leaf, int[] clusters) throws ClusException - Throws:
ClusException
-
tryGivenLeaf
public void tryGivenLeaf(ClusNode leaf, boolean use_p_lab, int violated, double ss, int[] clusters) throws ClusException - Throws:
ClusException
-
tryEachLeaf
public void tryEachLeaf(ClusNode tree, ClusNode root, int violated, double ss, int[] clusters) throws ClusException - Throws:
ClusException
-
computeCHeurStat
-
tryLabel
-
assignLabels
public void assignLabels(ILevelCHeurStat a, ILevelCHeurStat b, ClusNode root, int parlabel, int nb) throws ClusException - Throws:
ClusException
-
storeLabels
-
enterBestTest
- Throws:
ClusException
-
freeLabel
-
labelSet
-
countLabel
-
iLevelCInduce
- Throws:
ClusException
-
assignAllInstances
-
assignAllInstances
-
countViolatedConstaints
-
countViolatedConstaints
public int countViolatedConstaints(int[] clusters) -
createConstraints
-
induceSingleUnpruned
public ClusModel induceSingleUnpruned(ClusRun cr) throws ClusException, IOException, InterruptedException - Overrides:
induceSingleUnprunedin classDepthFirstInduce- Throws:
ClusExceptionIOExceptionInterruptedException
-