From cba6993677200131c6d8cf0d3264eb82dbba4b66 Mon Sep 17 00:00:00 2001 From: niklasmueboe Date: Fri, 11 Oct 2024 09:15:40 +0200 Subject: [PATCH] fix component selection --- multispaeti/_multispati_pca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multispaeti/_multispati_pca.py b/multispaeti/_multispati_pca.py index 34c4dea..434b7d3 100644 --- a/multispaeti/_multispati_pca.py +++ b/multispaeti/_multispati_pca.py @@ -127,7 +127,7 @@ def _validate_n_components(self, n: int, d: int): "`n_components` should be less than minimum of " "#samples and #features. Using all components." ) - self._n_components = None + self._n_components = None elif isinstance(self.n_components, tuple) and len(self.n_components) == 2: if any( not isinstance(i, int) or i < 0 for i in self.n_components