Definition at line 164 of file TestMakeRandomTree.h. References Impala::Core::Feature::RandomTree::GetSplit(), ILOG_DEBUG, Impala::Core::Feature::MakeRandomTree(), mFakeData, and mNumberClasses. 00165 { 00166 RandomTree* tree = MakeRandomTree(mFakeData, mNumberClasses, 2, 1000); 00167 //we'll assume 50 tries leads to optimal results (only 12 data points) 00168 int dim; 00169 double val; 00170 tree->GetSplit(dim, val); 00171 ILOG_DEBUG("dim:"<< dim <<" val:"<< val); 00172 CPPUNIT_ASSERT_EQUAL(2, dim); 00173 CPPUNIT_ASSERT_EQUAL(6.00, val); 00174 }
Here is the call graph for this function:
|