Skip to content

Commit

Permalink
Fix round errors in doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GardevoirX committed Jun 28, 2024
1 parent 04dae85 commit 1f28aae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/skmatter/decomposition/_kernel_pcovr.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class KernelPCovR(_BasePCA, LinearModel):
[-0.18992219, 0.82064368],
[ 1.11923584, -1.04798016],
[-1.5635827 , 1.11078662]])
>>> round(kpcovr.score(X, Y), 5)
>>> print(round(kpcovr.score(X, Y), 5))
-0.52039
""" # NoQa: E501

Expand Down
2 changes: 1 addition & 1 deletion src/skmatter/neighbors/_sparsekde.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SparseKDE(BaseEstimator):
The total log-likelihood under the model
>>> round(estimator.score(result), 3)
>>> print(round(estimator.score(result), 3))
-759.831
"""

Expand Down
2 changes: 1 addition & 1 deletion src/skmatter/utils/_sparsekde.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def effdim(cov):
>>> import numpy as np
>>> from skmatter.utils import effdim
>>> cov = np.array([[1, 1, 0], [1, 1, 0], [0, 0, 1]])
>>> round(effdim(cov), 3)
>>> print(round(effdim(cov), 3))
1.89
References
Expand Down

0 comments on commit 1f28aae

Please sign in to comment.