27 #ifndef GRT_DECISION_TREE_THRESHOLD_NODE_HEADER 28 #define GRT_DECISION_TREE_THRESHOLD_NODE_HEADER 74 virtual bool clear()
override;
82 virtual bool print()
const override;
91 virtual bool getModel( std::ostream &stream )
const override;
106 UINT getFeatureIndex()
const;
112 Float getThreshold()
const;
123 bool set(
const UINT nodeSize,
const UINT featureIndex,
const Float threshold,
const VectorFloat &classProbabilities);
129 virtual bool computeBestSplitBestIterativeSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
131 virtual bool computeBestSplitBestRandomSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
158 #endif //GRT_DECISION_TREE_THRESHOLD_NODE_HEADER
virtual bool clear() override
virtual bool predict_(VectorFloat &x, VectorFloat &classLikelihoods) override
virtual bool loadParametersFromFile(std::fstream &file) override
virtual Node * deepCopy() const override
virtual bool saveParametersToFile(std::fstream &file) const override
virtual bool getModel(std::ostream &stream) const override
virtual bool print() const override