Skip to content

Commit

Permalink
Merge pull request #14 from HiDiHlabs/dev
Browse files Browse the repository at this point in the history
Fix return of incorrect number of components
  • Loading branch information
niklasmueboe authored Nov 1, 2024
2 parents 2c8c910 + cba6993 commit 518402d
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 518402d

Please sign in to comment.