摘要: 作用:控制随机状态。 原因:为什么需要用到这样一个参数random_state(随机状态)? 在此先简单罗列三种情况:1、在构建模型时: forest = RandomForestClassifier(n_estimators=100, random_state=0)forest.fit(X_tra 阅读全文
posted @ 2022-05-16 10:56 夏沫゛烟雨 阅读(1105) 评论(0) 推荐(0) 编辑