27 #ifndef GRT_DECISION_TREE_TRIPLE_FEATURE_NODE_HEADER 28 #define GRT_DECISION_TREE_TRIPLE_FEATURE_NODE_HEADER 31 #include "../../ClusteringModules/KMeans/KMeans.h" 67 virtual bool clear()
override;
75 virtual bool print()
const override;
84 virtual bool getModel( std::ostream &stream )
const override;
99 UINT getFeatureIndexA()
const;
106 UINT getFeatureIndexB()
const;
113 UINT getFeatureIndexC()
const;
125 bool set(
const UINT nodeSize,
const UINT featureIndexA,
const UINT featureIndexB,
const UINT featureIndexC,
const VectorFloat &classProbabilities);
131 virtual bool computeBestSplitBestIterativeSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
133 virtual bool computeBestSplitBestRandomSplit(
const UINT &numSplittingSteps,
const ClassificationData &trainingData,
const Vector< UINT > &features,
const Vector< UINT > &classLabels, UINT &featureIndex, Float &minError )
override;
162 #endif //GRT_DECISION_TREE_TRIPLE_FEATURE_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
This class implements a DecisionTreeTripleFeatureNode, which is a specific type of node used for a De...
virtual bool print() const override