From 419f5d77d558b9d32588a8941b7c39a8560a482a Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Tue, 4 Aug 2026 22:51:35 +0300 Subject: [PATCH] Fix typo in self.b_i indexing Correct slice syntax from `np.newaxis:,` to `np.newaxis, :`. Fixes #9 --- mf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mf.py b/mf.py index bddd9ce..9d30d3f 100644 --- a/mf.py +++ b/mf.py @@ -94,4 +94,4 @@ def full_matrix(self): """ Computer the full matrix using the resultant biases, P and Q """ - return self.b + self.b_u[:,np.newaxis] + self.b_i[np.newaxis:,] + self.P.dot(self.Q.T) + return self.b + self.b_u[:,np.newaxis] + self.b_i[np.newaxis, :] + self.P.dot(self.Q.T)