54 RegressionTree(
const UINT numSplittingSteps=100,
const UINT minNumSamplesPerNode=5,
const UINT maxDepth=10,
const bool removeFeaturesAtEachSpilt =
false,
const UINT trainingMode = BEST_ITERATIVE_SPILT,
const bool useScaling=
false,
const Float
minRMSErrorPerNode = 0.01);
179 bool computeBestSpiltBestIterativeSpilt(
const RegressionData &trainingData,
const Vector< UINT > &features, UINT &featureIndex, Float &threshold, Float &minError );
Float minRMSErrorPerNode
virtual bool train_(RegressionData &trainingData)
const RegressionTreeNode * getTree() const
virtual bool train(ClassificationData trainingData)
This file implements a RegressionTreeNode, which is a specific type of node used for a RegressionTree...
bool setMinRMSErrorPerNode(const Float minRMSErrorPerNode)
virtual bool saveModelToFile(std::fstream &file) const
virtual bool saveModelToFile(std::string filename) const
virtual bool deepCopyFrom(const Regressifier *regressifier)
RegressionTree & operator=(const RegressionTree &rhs)
virtual bool loadModelFromFile(std::string filename)
RegressionTreeNode * deepCopyTree() const
virtual bool predict_(VectorFloat &inputVector)
RegressionTree(const UINT numSplittingSteps=100, const UINT minNumSamplesPerNode=5, const UINT maxDepth=10, const bool removeFeaturesAtEachSpilt=false, const UINT trainingMode=BEST_ITERATIVE_SPILT, const bool useScaling=false, const Float minRMSErrorPerNode=0.01)
virtual ~RegressionTree(void)
virtual bool print() const