public class FTNode extends FTtree
m_auxLocalModel, m_CF, m_constError, m_hasConstr, m_higherRegressions, m_id, m_isLeaf, m_leafclass, m_leafModelNum, m_localModel, m_minNumInstances, m_modelSelection, m_nominalToBinary, m_numHigherRegressions, m_numInstances, m_sons, m_totalInstanceWeightm_errorOnProbabilities, m_fixedNumIterations, m_heuristicStop, m_maxIterations, m_numClasses, m_numericData, m_numericDataHeader, m_numFoldsBoosting, m_numParameters, m_numRegressions, m_regressions, m_train, m_useCrossValidation, m_weightTrimBeta, Z_MAXm_Debug| Constructor and Description |
|---|
FTNode(boolean errorOnProbabilities,
int numBoostingIterations,
int minNumInstances,
double weightTrimBeta,
boolean useAIC)
Constructor for Functional tree node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances data)
Method for building a Functional tree (only called for the root node).
|
void |
buildTree(Instances data,
SimpleLinearRegression[][] higherRegressions,
double totalInstanceWeight,
double higherNumParameters)
Method for building the tree structure.
|
double[] |
distributionForInstance(Instance instance)
Returns the class probabilities for an instance given by the Functional Tree.
|
String |
getRevision()
Returns the revision string.
|
double |
prune()
Method for prunning a tree using C4.5 pruning procedure.
|
assignIDs, assignLeafModelNumbers, cleanup, dumpTree, getCoefficients, getConstError, getEstimatedErrors, getEstimatedErrorsForBranch, getEstimatedErrorsForDistribution, getEtimateConstModel, getFs, getModelParameters, getNodes, getNodes, getNumericData, getNumInnerNodes, getNumLeaves, graph, graphTree, hasModels, insertNewAttr, mergeArrays, modelDistributionForInstance, modelsToString, numLeaves, numNodes, removeExtAttributes, toStringgetBestIteration, getErrorRate, getFs, getMaxIterations, getMeanAbsoluteError, getNumRegressions, getProbs, getUseAIC, getUsedAttributes, getWeightTrimBeta, getWs, getYs, getZ, getZs, initRegressions, negativeLogLikelihood, percentAttributesUsed, performBoosting, performBoosting, performBoosting, performBoostingCV, performBoostingInfCriterion, performIteration, probs, selectRegressions, setHeuristicStop, setMaxIterations, setUseAIC, setWeightTrimBetaclassifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptionspublic FTNode(boolean errorOnProbabilities,
int numBoostingIterations,
int minNumInstances,
double weightTrimBeta,
boolean useAIC)
errorOnProbabilities - Use error on probabilities for stopping criterion of LogitBoost?numBoostingIterations - sets the numBoostingIterations parameterminNumInstances - minimum number of instances at which a node is considered for splittingpublic void buildClassifier(Instances data) throws Exception
buildClassifier in class FTtreedata - the data to train withException - if something goes wrongpublic void buildTree(Instances data, SimpleLinearRegression[][] higherRegressions, double totalInstanceWeight, double higherNumParameters) throws Exception
buildTree in class FTtreedata - the training data passed on to this nodehigherRegressions - An array of regression functions produced by LogitBoost at higher
levels in the tree. They represent a logistic regression model that is refined locally
at this node.totalInstanceWeight - the total number of training exampleshigherNumParameters - effective number of parameters in the logistic regression model built
in parent nodesException - if something goes wrongpublic double prune()
throws Exception
public double[] distributionForInstance(Instance instance) throws Exception
distributionForInstance in class FTtreeinstance - the instanceException - if distribution can't be computed successfullypublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class FTtreeCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.