Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's probably a bug (in c++ already), the default constructor for DTrees is not usable, you need to set 2 additional params, like:

cv_model = cv2.ml.DTrees_create()
cv_model.setCVFolds(0)
cv_model.setMaxDepth(10)