Skip to content

Commit 0619753

Browse files
NelleVGaelVaroquaux
authored andcommitted
Knuth load_cities dataset isn't used anymore
1 parent 4707152 commit 0619753

File tree

3 files changed

+0
-166
lines changed

3 files changed

+0
-166
lines changed

sklearn/datasets/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .base import load_iris
1111
from .base import load_linnerud
1212
from .base import load_boston
13-
from .base import load_cities
1413
from .base import get_data_home
1514
from .base import clear_data_home
1615
from .base import load_sample_images

sklearn/datasets/base.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -334,42 +334,6 @@ def load_diabetes():
334334
return Bunch(data=data, target=target)
335335

336336

337-
def load_cities():
338-
"""
339-
Mileage data for US cities from the Stanford Graph Base
340-
341-
Revised mileage data for highways in the United States and Canada, 1949
342-
343-
============== ==================
344-
Samples total 128 cities
345-
Dimensionality
346-
Features
347-
Targets Coordinates
348-
==============
349-
350-
Returns
351-
-------
352-
data: Bunch
353-
Dictionary-like object, the interesting attributes are: 'data', the
354-
distance matrix to learn and 'header', labels for the 128 cities.
355-
356-
Notes
357-
------
358-
359-
[1] Donald E. Knuth,
360-
"The Stanford GraphBase: A Platform for Combinatorial Computing",
361-
ACM Press, New York, 1993.
362-
[2] http://www-cs-faculty.stanford.edu/~knuth/sgb.html
363-
"""
364-
base_dir = join(dirname(__file__), 'data/')
365-
# Read data
366-
data = np.loadtxt(base_dir + 'knuth_miles.csv',
367-
skiprows=1)
368-
with open(base_dir + 'knuth_miles.csv') as f:
369-
header = f.readline().split(',')
370-
return Bunch(data=data, header=header)
371-
372-
373337
def load_linnerud():
374338
"""Load and return the linnerud dataset (multivariate regression).
375339

0 commit comments

Comments
 (0)