Skip to content

Commit

Permalink
Removed requirement for >1 dim input, due to fill_modes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrschue committed Dec 9, 2020
1 parent 157b150 commit 4ef4e09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sksfa/_sfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ def fit(self, X, y=None):
self._initialise_pca()
if issparse(X):
raise TypeError('SFA does not support sparse input.')
if (X.shape[1] < 2):
raise ValueError(f"At least two dimensional data is needed, "\
"n_features={X.shape[1]} is too small.")
#if (X.shape[1] < 2):
# raise ValueError(f"At least two dimensional data is needed, "\
# "n_features={X.shape[1]} is too small.")
self._fit(X)
self.is_fitted_ = True
return self
Expand Down

0 comments on commit 4ef4e09

Please sign in to comment.