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