mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-29 16:40:49 +08:00
calcVarImportance is really always 'true'
This commit is contained in:
@@ -25,7 +25,6 @@ namespace masc
|
||||
int maxDepth = 25; //To be left as a parameter of the training plugin (default 25)
|
||||
int minSampleCount = 1; //To be left as a parameter of the training plugin (default 1)
|
||||
int maxCategories = 0; //Normally not important as there’s no categorical variable
|
||||
bool calcVarImportance = true; //Must be true
|
||||
int activeVarCount = 0; //Use 0 as the default parameter (works best)
|
||||
int maxTreeCount = 100; //Left as a parameter of the training plugin (default: 100)
|
||||
};
|
||||
|
||||
@@ -462,7 +462,7 @@ bool Classifier::train( const ccPointCloud* cloud,
|
||||
m_rtrees = cv::ml::RTrees::create();
|
||||
m_rtrees->setMaxDepth(params.maxDepth);
|
||||
m_rtrees->setMinSampleCount(params.minSampleCount);
|
||||
m_rtrees->setCalculateVarImportance(params.calcVarImportance);
|
||||
m_rtrees->setCalculateVarImportance(true);
|
||||
m_rtrees->setActiveVarCount(params.activeVarCount);
|
||||
cv::TermCriteria terminationCriteria(cv::TermCriteria::MAX_ITER, params.maxTreeCount, std::numeric_limits<double>::epsilon());
|
||||
m_rtrees->setTermCriteria(terminationCriteria);
|
||||
|
||||
Reference in New Issue
Block a user