Skip to content

Commit

Permalink
Update adaptive_permutation_threshold.py
Browse files Browse the repository at this point in the history
Add comment about the condition of X from the removal lines
  • Loading branch information
lionelkusch authored Dec 16, 2024
1 parent 23f7f64 commit 3a920ea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hidimstat/adaptive_permutation_threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ def ada_svr(X, y, rcond=1e-3):


def _manual_inversion(X, rcond=1e-3):
"Inverting taking care of low eigenvalues to increase numerical stability"
"""
Inverting taking care of low eigenvalues to increase numerical stability
Parameters
-----------
X : ndarray, shape (n_features, n_features)
Data.
Base on usage of X in the main function, X is squared matrix and not full_ranked (for details see PR#58)
"""

X = np.asarray(X)
U, s, V = np.linalg.svd(X, full_matrices=False)
Expand Down

0 comments on commit 3a920ea

Please sign in to comment.