Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GridsearchCV() 有一个参数 cv,默认值为 3 表示它是 3 倍。有什么方法可以将 Gridsearch() 与保留验证方案一起使用。例如 80-20% 拆分???
您可以使用sklearn.model_selection.ShuffleSplitor sklearn.model_selection.StratifiedShuffleSplitwithn_splits=1代替 cv 参数
sklearn.model_selection.ShuffleSplit
sklearn.model_selection.StratifiedShuffleSplit
n_splits=1
阅读文档以获取更多详细信息 http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.StratifiedShuffleSplit.html#sklearn.model_selection.StratifiedShuffleSplit