File tree Expand file tree Collapse file tree 3 files changed +0
-166
lines changed Expand file tree Collapse file tree 3 files changed +0
-166
lines changed Original file line number Diff line number Diff line change 1010from .base import load_iris
1111from .base import load_linnerud
1212from .base import load_boston
13- from .base import load_cities
1413from .base import get_data_home
1514from .base import clear_data_home
1615from .base import load_sample_images
Original file line number Diff line number Diff 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-
373337def load_linnerud ():
374338 """Load and return the linnerud dataset (multivariate regression).
375339
You can’t perform that action at this time.
0 commit comments