Revision history [back]

you can make an instance of CvGBTreesParams, set your values, and pass that to either the CvGBTrees constructor, or the train method

unfortunately, it's the very last param, so you'll end up with a beast similar to this:

CvGBTreesParams params;
params.loss_function_type = 17; // no idea about the value here !!!

CvGBTrees tree( trainData,tflag,responses, Mat(), Mat(), Mat(), Mat(), params ); //lots of default args


you can make an instance of CvGBTreesParams, set your values, and pass that to either the CvGBTrees constructor, or the train method

unfortunately, it's the very last param, so you'll end up with a beast similar to this:

CvGBTreesParams params;
params.loss_function_type = 17; // no idea about the value here !!!
HUBER_LOSS;

CvGBTrees tree( trainData,tflag,responses, Mat(), Mat(), Mat(), Mat(), params ); //lots of default args