回答“关于用python做机器学习工作中的random_state参数到底是个什么意思”
我们在用python做机器学习的交叉验证工作时,常会遇到random_state参数,比如函数:KFold(n_splits=5, shuffle=False, random_state=None)该函数用来做K折交叉验证。n_splits:折数,int型,默认值为5.shuffle:对数据进行划分前是否进行洗牌。boolean型random_state:int, RandomState instance 或 None, 默认为None。直译为“随机状态”。只有当shuffle=T
原创
2021-07-31 16:42:02 ·
8364 阅读 ·
7 评论