Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Johnson
scikit-learn
Commits
0619753d
Commit
0619753d
authored
13 years ago
by
Nelle Varoquaux
Committed by
Gael Varoquaux
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Knuth load_cities dataset isn't used anymore
parent
47071524
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
sklearn/datasets/__init__.py
+0
-1
0 additions, 1 deletion
sklearn/datasets/__init__.py
sklearn/datasets/base.py
+0
-36
0 additions, 36 deletions
sklearn/datasets/base.py
sklearn/datasets/data/knuth_miles.csv
+0
-129
0 additions, 129 deletions
sklearn/datasets/data/knuth_miles.csv
with
0 additions
and
166 deletions
sklearn/datasets/__init__.py
+
0
−
1
View file @
0619753d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
sklearn/datasets/base.py
+
0
−
36
View file @
0619753d
...
...
@@ -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).
...
...
This diff is collapsed.
Click to expand it.
sklearn/datasets/data/knuth_miles.csv
deleted
100644 → 0
+
0
−
129
View file @
47071524
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment