From 282c6812005e16ebe51f15d97eeba61c0ee621a6 Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Sat, 11 Jan 2025 15:43:16 -0500 Subject: [PATCH] typecheck ignore in svd --- lenskit-sklearn/lenskit/sklearn/svd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lenskit-sklearn/lenskit/sklearn/svd.py b/lenskit-sklearn/lenskit/sklearn/svd.py index 0442f804d..0214353a5 100644 --- a/lenskit-sklearn/lenskit/sklearn/svd.py +++ b/lenskit-sklearn/lenskit/sklearn/svd.py @@ -90,7 +90,7 @@ def train(self, data: Dataset, options: TrainingOptions = TrainingOptions()): self.config.features, algorithm=self.config.algorithm, n_iter=self.config.n_iter ) _log.info("[%s] training SVD (k=%d)", timer, self.factorization_.n_components) # type: ignore - Xt = self.factorization_.fit_transform(r_mat) + Xt = self.factorization_.fit_transform(r_mat) # type: ignore self.user_components_ = Xt self.users_ = data.users.copy() self.items_ = data.items.copy()