8000 DOC minor fixes in formatting, don't use deprecated n_components in A… · lithuak/scikit-learn@33d132a · GitHub
[go: up one dir, main page]

Skip to content

Commit 33d132a

Browse files
committed
DOC minor fixes in formatting, don't use deprecated n_components in Agglomerative
1 parent f9b6899 commit 33d132a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/datasets/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ below in the :ref:`sample_images` section.
2929
The dataset generation functions and the svmlight loader share a simplistic
3030
interface, returning a tuple ``(X, y)`` consisting of a ``n_samples`` *
3131
``n_features`` numpy array ``X`` and an array of length ``n_samples``
32-
containing the targets ``y``.
32+
containing the targets ``y``.
3333

3434
The toy datasets as well as the 'real world' datasets and the datasets
3535
fetched from mldata.org have more sophisticated structure.

examples/cluster/plot_feature_agglomeration_vs_univariate_selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# Ward agglomeration followed by BayesianRidge
6969
connectivity = grid_to_graph(n_x=size, n_y=size)
7070
ward = FeatureAgglomeration(n_clusters=10, connectivity=connectivity,
71-
memory=mem, n_components=1)
71+
memory=mem)
7272
clf = Pipeline([('ward', ward), ('ridge', ridge)])
7373
# Select the optimal number of parcels with grid search
7474
clf = GridSearchCV(clf, {'ward__n_clusters': [10, 20, 30]}, n_jobs=1, cv=cv)

0 commit comments

Comments
 (0)
0