Skip to content
Snippets Groups Projects
Commit 0619753d authored by Nelle Varoquaux's avatar Nelle Varoquaux Committed by Gael Varoquaux
Browse files

Knuth load_cities dataset isn't used anymore

parent 47071524
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ from .base import load_files
from .base import load_iris
from .base import load_linnerud
from .base import load_boston
from .base import load_cities
from .base import get_data_home
from .base import clear_data_home
from .base import load_sample_images
......
......@@ -334,42 +334,6 @@ def load_diabetes():
return Bunch(data=data, target=target)
def load_cities():
"""
Mileage data for US cities from the Stanford Graph Base
Revised mileage data for highways in the United States and Canada, 1949
============== ==================
Samples total 128 cities
Dimensionality
Features
Targets Coordinates
==============
Returns
-------
data: Bunch
Dictionary-like object, the interesting attributes are: 'data', the
distance matrix to learn and 'header', labels for the 128 cities.
Notes
------
[1] Donald E. Knuth,
"The Stanford GraphBase: A Platform for Combinatorial Computing",
ACM Press, New York, 1993.
[2] http://www-cs-faculty.stanford.edu/~knuth/sgb.html
"""
base_dir = join(dirname(__file__), 'data/')
# Read data
data = np.loadtxt(base_dir + 'knuth_miles.csv',
skiprows=1)
with open(base_dir + 'knuth_miles.csv') as f:
header = f.readline().split(',')
return Bunch(data=data, header=header)
def load_linnerud():
"""Load and return the linnerud dataset (multivariate regression).
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment