Skip to content

Commit c651e23

Browse files
committed
Fixing docstrings to address docs build errors
1 parent f807237 commit c651e23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/skmatter/decomposition/_pcovc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class PCovC(LinearClassifierMixin, _BasePCov):
6969
n_components : int, float or str, default=None
7070
Number of components to keep.
7171
if n_components is not set all components are kept::
72+
7273
n_components == min(n_samples, n_features)
7374
7475
svd_solver : {'auto', 'full', 'arpack', 'randomized'}, default='auto'
@@ -161,7 +162,7 @@ class PCovC(LinearClassifierMixin, _BasePCov):
161162
the projector, or weights, from the input space :math:`\mathbf{X}`
162163
to the class confidence scores :math:`\mathbf{Z}`
163164
164-
ptz_ : ndarray of size :math: ``({n_{components}, })` or `({n_{components}, n_{classes}})`
165+
ptz_ : ndarray of size :math: `({n_{components}, })` or `({n_{components}, n_{classes}})`
165166
the projector, or weights, from the latent-space projection
166167
:math:`\mathbf{T}` to the class confidence scores :math:`\mathbf{Z}`
167168

src/skmatter/decomposition/_pcovr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class PCovR(RegressorMixin, MultiOutputMixin, _BasePCov):
1515
1616
This projection is determined by the eigendecomposition of a modified gram
1717
matrix :math:`\mathbf{\tilde{K}}`
18+
1819
.. math::
1920
\mathbf{\tilde{K}} = \alpha \mathbf{X} \mathbf{X}^T +
2021
(1 - \alpha) \mathbf{\hat{Y}}\mathbf{\hat{Y}}^T
@@ -60,6 +61,7 @@ class PCovR(RegressorMixin, MultiOutputMixin, _BasePCov):
6061
n_components : int, float or str, default=None
6162
Number of components to keep.
6263
if n_components is not set all components are kept::
64+
6365
n_components == min(n_samples, n_features)
6466
6567
svd_solver : {'auto', 'full', 'arpack', 'randomized'}, default='auto'

0 commit comments

Comments
 (0)