Skip to content

Commit

Permalink
fix component selection
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmueboe committed Oct 11, 2024
1 parent d1966be commit cba6993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multispaeti/_multispati_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cba6993

Please sign in to comment.