Skip to content

Commit

Permalink
dummy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 2, 2020
1 parent 9456e93 commit 4a4697c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Contents:

installation
usage
reference/index
contributing
authors
history
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. toctree::
:maxdepth: 2

decomposition
utils
33 changes: 33 additions & 0 deletions sparse_decomposition/decomposition/decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ def __init__(
tol=1e-5,
verbose=0,
):
"""[summary]
Parameters
----------
n_components : int, optional
[description], by default 2
gamma : [type], optional
[description], by default None
max_iter : int, optional
[description], by default 10
scale : bool, optional
[description], by default False
center : bool, optional
[description], by default False
tol : [type], optional
[description], by default 1e-5
verbose : int, optional
[description], by default 0
"""
self.n_components = n_components
self.gamma = gamma
self.max_iter = max_iter
Expand Down Expand Up @@ -82,6 +101,20 @@ def _preprocess_data(self, X):
# TODO better convergence criteria

def fit_transform(self, X, y=None):
"""[summary]
Parameters
----------
X : [type]
[description]
y : [type], optional
[description], by default None
Returns
-------
[type]
[description]
"""
self._validate_parameters(X)

self._validate_data(X, copy=True, ensure_2d=True) # from sklearn BaseEstimator
Expand Down

0 comments on commit 4a4697c

Please sign in to comment.