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 double
protected ClusNode
protected NodeTest
protected ArrayList<ILevelConstraint>
protected int[][]
protected double
protected int
protected double
protected int
protected int
protected ClusNormalizedAttributeWeights
protected RowDataSortHelper
Fields inherited from class si.ijs.kt.clus.algo.tdidt.DepthFirstInduce
m_Find_MinMax, m_FindBestTest, m_Root, SHOW_INDUCE_PROGRESS
Fields inherited from class si.ijs.kt.clus.algo.ClusInductionAlgorithm
m_Schema, m_StatManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
assignAllInstances
(ClusNode root) void
assignAllInstances
(ClusNode tree, int[] clusters) void
assignLabels
(ILevelCHeurStat a, ILevelCHeurStat b, ClusNode root, int parlabel, int nb) computeCHeurStat
(ClusNode leaf, ClusNode par, int[] ie, int[] clusters) double
computeHeuristic
(int violated, double ss) double
computeHeuristic
(ILevelCHeurStat pos, ILevelCHeurStat neg, ILevelCStatistic ps, boolean use_p_lab, double ss_offset, int nb_violated) int
countLabel
(ClusNode tree, int label) int
countViolatedConstaints
(int[] clusters) int[]
countViolatedConstaints
(RowData data, int[] clusters) createConstraints
(RowData data, int nbRows) int[][]
int[]
void
enterBestTest
(ClusNode tree, ClusNode root, int[] clusters) void
findNumericConstraints
(NumericAttrType at, ClusNode leaf, boolean use_p_lab, double ss_offset, int violated_offset, int violated_leaf, int[] clusters) int
getSubsetConstraints
(RowData data) void
iLevelCInduce
(ClusNode root) void
void
storeLabels
(ClusNode leaf, ILevelCHeurStat stat) void
tryEachLeaf
(ClusNode tree, ClusNode root, int violated, double ss, int[] clusters) void
tryGivenLeaf
(ClusNode leaf, boolean use_p_lab, int violated, double ss, int[] clusters) int
tryLabel
(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, setInitialData
Methods 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:
ClusException
IOException
-
-
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:
induceSingleUnpruned
in classDepthFirstInduce
- Throws:
ClusException
IOException
InterruptedException
-