From 9aebbf3f442bb682887584d4fcf18a0a5e8947b6 Mon Sep 17 00:00:00 2001 From: Yinyajun Date: Wed, 24 Oct 2018 12:08:48 +0800 Subject: [PATCH] move np.save out of loop --- src/Data/dataset_loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/dataset_loading.py b/src/Data/dataset_loading.py index b2db47f..47cf784 100644 --- a/src/Data/dataset_loading.py +++ b/src/Data/dataset_loading.py @@ -74,7 +74,7 @@ def create_movielens_userproduct_matrix(userid, productid, rating): view_matrix[userid[i], productid[i]] = 1 #return view_matrix - np.savetxt('ML_view.txt', view_matrix) + np.savetxt('ML_view.txt', view_matrix) print("Data Saved")