Supported target types are: ('binary', 'multiclass'). Got 'continuous' instead.

运行python出错:

Supported target types are: ('binary', 'multiclass'). Got 'continuous' instead.

排查原因,发现是因为我们执行的是回归问题,而使用了分层(StratifiedKFold),这货是不支持回归,只支持分类问题,因为在写参数里面是不能假如这个,删去即可

 

你可能感兴趣的:(Python)