Skip to content

Commit de81ca8

Browse files
committed
change readme
1 parent 7c7f8ab commit de81ca8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,12 @@ julia> using Surprise
2222
2323
julia> dataset = DatasetsCF.MovieLens();
2424
25-
julia> (ds_train, ds_test) = Persa.get(Persa.HoldOut(dataset, 0.9));
25+
julia> model = Surprise.IRSVD(dataset);
2626
27-
julia> model = Surprise.IRSVD(ds_train);
27+
julia> Persa.train!(model, dataset)
2828
29-
julia> Persa.train!(model, ds_train)
30-
31-
julia> print(Persa.aval(model, ds_test))
32-
MAE - 0.7380270708513149
33-
RMSE - 0.9369961685890544
34-
Coverage - 0.9988001199880012
29+
julia> model[1,1]
30+
Rating: 4.010861934456679 (4)
3531
```
3632

3733
## Algorithms

0 commit comments

Comments
 (0)