Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用功能CvRTrees::train。该函数自动对数据进行采样。问题是我在传递数据之前已经对数据进行了采样。我不希望它再次重新采样。是否需要传递任何标志来停止此采样,或者我必须从代码中删除这一行?
CvRTrees::train
谢谢你
我终于找到了解决方案,转到文件 mlrtrees.cpp,第 374 行,它会是这样的
int idx = cvRandInt( &rng ) % nsamples;
将其更改为
int idx = i;
顺便说一句,它还没有经过测试