8000 Comment out doctest for fetch_mldata · scikit-learn/scikit-learn@3f1ea66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f1ea66

Browse files
author
Fabian Pedregosa
committed
Comment out doctest for fetch_mldata
See issue #358: #358
1 parent 00370c8 commit 3f1ea66

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sklearn/datasets/mldata.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,25 @@ def fetch_mldata(dataname, target_name='label', data_name='data',
7878
Examples
7979
--------
8080
Load the 'iris' dataset from mldata.org:
81-
>>> from sklearn.datasets.mldata import fetch_mldata
82-
>>> iris = fetch_mldata('iris')
83-
>>> iris.target[0]
84-
1
85-
>>> print iris.data[0]
86-
[-0.555556 0.25 -0.864407 -0.916667]
81+
# >>> from sklearn.datasets.mldata import fetch_mldata
82+
# >>> iris = fetch_mldata('iris')
83+
# >>> iris.target[0]
84+
# 1
85+
# >>> print iris.data[0]
86+
# [-0.555556 0.25 -0.864407 -0.916667]
8787
8888
Load the 'leukemia' dataset from mldata.org, which respects the
8989
sklearn axes convention:
90-
>>> leuk = fetch_mldata('leukemia', transpose_data=False)
91-
>>> print leuk.data.shape[0]
92-
7129
90+
# >>> leuk = fetch_mldata('leukemia', transpose_data=False)
91+
# >>> print leuk.data.shape[0]
92+
# 7129
9393
9494
Load an alternative 'iris' dataset, which has different names for the
9595
columns:
96-
>>> iris2 = fetch_mldata('datasets-UCI iris', target_name=1,
97-
... data_name=0)
98-
>>> iris3 = fetch_mldata('datasets-UCI iris',
99-
... target_name='class', data_name='double0')
96+
# >>> iris2 = fetch_mldata('datasets-UCI iris', target_name=1,
97+
# ... data_name=0)
98+
# >>> iris3 = fetch_mldata('datasets-UCI iris',
99+
# ... target_name='class', data_name='double0')
100100
"""
101101

102102
# normalize dataset name

0 commit comments

Comments
 (0)
0