Skip to content

Commit

Permalink
DOC for n_nonzero_coefs_ attribute in OrthogonalMatchingPursuit (scik…
Browse files Browse the repository at this point in the history
  • Loading branch information
marenwestermann committed Nov 5, 2020
1 parent f0e9d29 commit b5d63e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sklearn/linear_model/_omp.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,11 @@ class OrthogonalMatchingPursuit(MultiOutputMixin, RegressorMixin, LinearModel):
n_iter_ : int or array-like
Number of active features across every target.
n_nonzero_coefs_ : int
The number of non-zero coefficients in the solution. If
`n_nonzero_coefs` is None and `tol` is None this value is either set
to 10% of `n_features` or 1, whichever is greater.
Examples
--------
>>> from sklearn.linear_model import OrthogonalMatchingPursuit
Expand Down

0 comments on commit b5d63e3

Please sign in to comment.