📜  如何提高随机森林分类器的准确性 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.617000             🧑  作者: Mango

代码示例3
def display(results):
    print(f'Best parameters are: {results.best_params_}')
    print("\n")
    mean_score = results.cv_results_['mean_test_score']
    std_score = results.cv_results_['std_test_score']
    params = results.cv_results_['params']
    for mean,std,params in zip(mean_score,std_score,params):
        print(f'{round(mean,3)} + or -{round(std,3)} for the {params}')