Skip to content

Commit

Permalink
DOC fix some docstring/parameter list mismatches
Browse files Browse the repository at this point in the history
See scikit-learn#2062 for a list and a script to fetch them.
  • Loading branch information
larsmans committed Jun 21, 2013
1 parent c2e025d commit bba4225
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sklearn/cluster/k_means_.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _kmeans_single(X, n_clusters, max_iter=300, init='k-means++',
X: array-like of floats, shape (n_samples, n_features)
The observations to cluster.
k: int
n_clusters: int
The number of clusters to form as well as the number of
centroids to generate.
Expand Down
5 changes: 3 additions & 2 deletions sklearn/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ class FeatureUnion(BaseEstimator, TransformerMixin):
Parameters
----------
transformers: list of (name, transformer)
List of transformer objects to be applied to the data.
transformer_list: list of (string, transformer) tuples
List of transformer objects to be applied to the data. The first
half of each tuple is the name of the transformer.
n_jobs: int, optional
Number of jobs to run in parallel (default 1).
Expand Down
4 changes: 0 additions & 4 deletions sklearn/svm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,6 @@ def fit(self, X, y):
y : array-like, shape = [n_samples]
Target vector relative to X
class_weight : {dict, 'auto'}, optional
Weights associated with classes. If not given, all classes
are supposed to have weight one.
Returns
-------
self : object
Expand Down

0 comments on commit bba4225

Please sign in to comment.