Hello,
I'm trying to access ``RTrees ``'s nodes and trees. Having the following code:
Ptr rt = RTrees::create();
...
...
rt->train(data);
vector splits = rt->getSplits();
I keep getting the memory access violation. Note that ``rt->getSplits()`` works by itself and I guess the problem is with the data type of ``splits``.
Also, when I read training data information and want to copy it into a variable:
std::vector catMap;
data->getCapMap().copyTo(catMap);
it copies garbage into the ``carMap`` and I have to copy it element by element instead of using ``copyTo`` method.
Do you have any idea about these two questions?
Thanks,
↧