📌  相关文章
📜  data.split(n_folds=5) DatasetAutoFolds' 对象没有属性 'split' - 无论代码示例

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

代码示例1
from surprise import SVD,Reader,Dataset
from surprise.model_selection import KFold
ratings =  pd.read_csv("/content/ratings_small.csv")
data = Dataset.load_from_df(ratings[['userId','movieId','rating']],reader)
kf = KFold(n_splits=5)
kf.split(data)