Skip to content

Commit

Permalink
Add docstring todos
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrukwa committed Oct 26, 2019
1 parent 6fbe216 commit 4163459
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions divik/_feature_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class GMMSelector(BaseEstimator, SelectorMixin):
"""
# TODO: Improve docstring so it will work with doctest
def __init__(self, stat: str, use_log: bool = False,
n_candidates: int = None, min_features: int = 1,
min_features_rate: float = .0, preserve_high: bool = True,
Expand Down Expand Up @@ -256,6 +257,7 @@ class HighAbundanceAndVarianceSelector(BaseEstimator, SelectorMixin):
array([[1 1 1 1 1 ...2 2 2]])
"""
# TODO: Improve docstring so it will work with doctest
def __init__(self, use_log: bool = False, min_features: int = 1,
min_features_rate: float = 0., max_components: int = 10):
self.use_log = use_log
Expand Down
1 change: 1 addition & 0 deletions divik/_kmeans/_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class AutoKMeans(BaseEstimator, ClusterMixin, TransformerMixin):
The optimal estimator.
"""
# TODO: Add example of usage.
def __init__(self, max_clusters: int, min_clusters: int = 1,
n_jobs: int = 1, method: str = 'dunn',
distance: str = 'euclidean', init: str = 'percentile',
Expand Down
1 change: 1 addition & 0 deletions divik/_kmeans/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class KMeans(BaseEstimator, ClusterMixin, TransformerMixin):
Labels of each point
"""
# TODO: Add example of usage.
def __init__(self, n_clusters: int, distance: str = 'euclidean',
init: str = 'percentile', percentile: float = 95.,
max_iter: int = 100, normalize_rows: bool = False):
Expand Down
1 change: 1 addition & 0 deletions divik/_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class DiviK(BaseEstimator, ClusterMixin, TransformerMixin):
[ 1, ..., 2.]])
"""
# TODO: Improve docstring so it will work with doctest

def __init__(self,
gap_trials: int = 10,
Expand Down

0 comments on commit 4163459

Please sign in to comment.