27 #ifndef GRT_DECISION_TREE_CLUSTER_NODE_HEADER 28 #define GRT_DECISION_TREE_CLUSTER_NODE_HEADER 31 #include "../../ClusteringModules/KMeans/KMeans.h" 74 virtual bool clear()
override;
82 virtual bool print()
const override;
107 virtual bool getModel( std::ostream &stream )
const override;
122 UINT getFeatureIndex()
const;
129 Float getThreshold()
const;
140 bool set(
const UINT nodeSize,
const UINT featureIndex,
const Float threshold,
const VectorFloat &classProbabilities);
146 virtual bool computeBestSplitBestIterativeSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
148 virtual bool computeBestSplitBestRandomSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
179 #endif //GRT_DECISION_TREE_CLUSTER_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 computeFeatureWeights(VectorFloat &weights) const
virtual bool print() const override
virtual bool computeLeafNodeWeights(MatrixFloat &weights) const