Answers for "'DatasetAutoFolds' object has no attribute 'split'"

1

data.split(n_folds=5) DatasetAutoFolds' object has no attribute 'split'

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)
Posted by: Guest on April-03-2021

Code answers related to "'DatasetAutoFolds' object has no attribute 'split'"

Browse Popular Code Answers by Language