Ask Your Question

ahb's profile - activity

2015-01-28 12:45:51 -0600 received badge  Student (source)
2015-01-28 12:44:47 -0600 asked a question Does sum > 0 assert in ml/src/tree.cpp in master branch make sense?

Hi everyone,

I'm currently trying to use RTrees for classification. Therefore, I set the last member of varTypes in TrainData::create() to VAR_CATEGORICAL. Unfortunately, this results in the above mentioned assert ( to trigger. So far I was not able to wrap my head around the code in DTreesImpl::WSplit DTreesImpl::findSplitCatClass(). Can someone help me out? Is there an error in my training setup or should the assert not be there?

Btw. everything seems to work if I use regression, i.e. leave the output variable as VAR_ORDERED.