Skip to content

Commit

Permalink
fix: allow standardized EOF analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
nicrie committed Feb 15, 2022
1 parent e9077a2 commit 6e80f78
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions xeofs/models/_eof_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ def __init__(
if n_modes is None:
self.n_modes = min(self.n_samples, self.n_features)

# TODO: remove NaN
# self._nan_idx = np.nan(X).any(axis=0)

# TODO: normalization

# TODO: weights

@abstractmethod
Expand Down
3 changes: 3 additions & 0 deletions xeofs/models/eof.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def __init__(
self._arr_tf = _ArrayTransformer()
self.X = self._arr_tf.fit_transform(X)

if norm:
self.X /= self.X.std(axis=0)

super().__init__(
X=X,
Y=None,
Expand Down

0 comments on commit 6e80f78

Please sign in to comment.