From f6ed5986938a94e5ee73d09763c6dbdc48d0349e Mon Sep 17 00:00:00 2001 From: darrylong Date: Tue, 21 May 2024 15:03:49 +0800 Subject: [PATCH] Fix iamaresearcher.rst ratiosplit codes --- docs/source/user/iamaresearcher.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/user/iamaresearcher.rst b/docs/source/user/iamaresearcher.rst index c3647eb9..fbbad530 100644 --- a/docs/source/user/iamaresearcher.rst +++ b/docs/source/user/iamaresearcher.rst @@ -163,7 +163,7 @@ experiments using the ``cornac.Experiment`` class. ml_100k = cornac.datasets.movielens.load_feedback() # Split the data into training and testing sets - rs = RatioSplit(data=ml_100k, test_size=0.2, rating_threshold=4.0, seed=123) + rs = RatioSplit(data=ml_100k, test_size=0.1, val_size=0.1, rating_threshold=4.0, seed=123) # Instantiate Recall@100 for evaluation rec100 = cornac.metrics.Recall(100)