Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AttributeError: 'DatasetAutoFolds' object has no attribute 'split'

enter image description here

the code s from a recommendation engine using surprise module, i can't find the answer anywhere.

like image 588
Raj Singh Avatar asked May 27 '20 15:05

Raj Singh


1 Answers

Depending on what you objective is, you can use the cross_validation method and it will perform the splits automatically for you. Example: cross_validate(algorithm_to_use, data, measures=['RMSE'], cv=5)... The cv=5 tells the cross validation iterator how to split the data.

See documentation on Cross validation.

You can also explore the model selection package for what you need.

Context is important when trying to help you find a solution.

like image 181
kevin james Avatar answered Nov 07 '22 02:11

kevin james