超级搜索 hyperopt的包装器可与sklearn管道一起使用 例 像原始hyperopt中一样 search_space = { 'n_estimators' : hp . quniform ( 'n_estimators' , 25 , 1525 , 50 ), 'min_samples_split' : hp . choice ( 'min_samples_split' , [ 2 , 5 , 20 , 50 ]), 'min_samples_leaf' : hp . choice ( 'min_samples_leaf' , [ 1 , 2 , 4 ]), }