Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14bec69

Browse files
authored
DOC Ensures that make_gaussian_quantiles passes numpydoc validation (#23996)
1 parent f2b085d commit 14bec69

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sklearn/datasets/_samples_generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ def make_gaussian_quantiles(
16371637
The number of features for each sample.
16381638
16391639
n_classes : int, default=3
1640-
The number of classes
1640+
The number of classes.
16411641
16421642
shuffle : bool, default=True
16431643
Shuffle the samples.
@@ -1662,7 +1662,6 @@ def make_gaussian_quantiles(
16621662
References
16631663
----------
16641664
.. [1] J. Zhu, H. Zou, S. Rosset, T. Hastie, "Multi-class AdaBoost", 2009.
1665-
16661665
"""
16671666
if n_samples < n_classes:
16681667
raise ValueError("n_samples must be at least n_classes")

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
FUNCTION_DOCSTRING_IGNORE_LIST = [
1515
"sklearn.datasets._lfw.fetch_lfw_people",
16-
"sklearn.datasets._samples_generator.make_gaussian_quantiles",
1716
"sklearn.datasets._species_distributions.fetch_species_distributions",
1817
"sklearn.datasets._svmlight_format_io.load_svmlight_file",
1918
"sklearn.datasets._svmlight_format_io.load_svmlight_files",

0 commit comments

Comments
 (0)