Skip to content

Commit 89593cd

Browse files
authored
Merge branch 'master' into model_selection_touchups
2 parents dff2f5a + f95e5b1 commit 89593cd

File tree

229 files changed

+4829
-3903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+4829
-3903
lines changed

.gitattributes

+1-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
1-
/sklearn/__check_build/_check_build.c -diff
2-
/sklearn/_isotonic.c -diff
3-
/sklearn/cluster/_dbscan_inner.cpp -diff
4-
/sklearn/cluster/_hierarchical.cpp -diff
5-
/sklearn/cluster/_k_means.c -diff
6-
/sklearn/cluster/_k_means_elkan.c -diff
7-
/sklearn/datasets/_svmlight_format.c -diff
8-
/sklearn/decomposition/_online_lda.c -diff
9-
/sklearn/decomposition/cdnmf_fast.c -diff
10-
/sklearn/ensemble/_gradient_boosting.c -diff
11-
/sklearn/feature_extraction/_hashing.c -diff
12-
/sklearn/linear_model/cd_fast.c -diff
13-
/sklearn/linear_model/sgd_fast.c -diff
14-
/sklearn/linear_model/sag_fast.c -diff
15-
/sklearn/metrics/pairwise_fast.c -diff
16-
/sklearn/neighbors/ball_tree.c -diff
17-
/sklearn/neighbors/kd_tree.c -diff
18-
/sklearn/svm/liblinear.c -diff
19-
/sklearn/svm/libsvm.c -diff
20-
/sklearn/svm/libsvm_sparse.c -diff
21-
/sklearn/tree/_tree.c -diff
22-
/sklearn/tree/_utils.c -diff
23-
/sklearn/utils/arrayfuncs.c -diff
24-
/sklearn/utils/graph_shortest_path.c -diff
25-
/sklearn/utils/lgamma.c -diff
26-
/sklearn/utils/_logistic_sigmoid.c -diff
27-
/sklearn/utils/murmurhash.c -diff
28-
/sklearn/utils/seq_dataset.c -diff
29-
/sklearn/utils/sparsefuncs_fast.c -diff
30-
/sklearn/utils/weight_vector.c -diff
1+
/doc/whats_new.rst merge=union

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ benchmarks/bench_covertype_data/
5555
.pydevproject
5656
.idea
5757

58-
cythonize.dat
5958
*.c
6059
*.cpp
6160

.mailmap

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ Olivier Grisel <olivier.grisel@ensta.org> <olivier.grisel@ensta.org>
9393
Olivier Hervieu <olivier.hervieu@gmail.com> <olivier.hervieu@tinyclues.com>
9494
Paul Butler <paulgb@gmail.com>
9595
Peter Prettenhofer <peter.prettenhofer@gmail.com>
96-
Raghav R V <rvraghav93@gmail.com>
96+
Raghav RV <rvraghav93@gmail.com>
97+
Raghav RV <rvraghav93@gmail.com> <ragvrv@gmail.com>
9798
Robert Layton <robertlayton@gmail.com>
9899
Roman Sinayev <roman.sinayev@gmail.com>
99100
Roman Sinayev <roman.sinayev@gmail.com> <roman@y570.(none)>

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
- DISTRIB="ubuntu" PYTHON_VERSION="2.7" CYTHON_VERSION="0.23.4"
3030
COVERAGE=true
3131
# This environment tests the oldest supported anaconda env
32-
- DISTRIB="conda" PYTHON_VERSION="2.6" INSTALL_MKL="false"
32+
- DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_MKL="false"
3333
NUMPY_VERSION="1.6.2" SCIPY_VERSION="0.11.0" CYTHON_VERSION="0.23"
3434
# This environment tests the newest supported anaconda env
3535
# It also runs tests requiring Pandas.

CONTRIBUTING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ likelihood of your contribution being merged.**
1212
How to contribute
1313
-----------------
1414

15-
The preferred workflow for contributing to scikit-learn is to fork the
15+
The preferred workflow for contributing to scikit-learn is to fork the
1616
[main repository](https://github.com/scikit-learn/scikit-learn) on
1717
GitHub, clone, and develop on a branch. Steps:
1818

@@ -26,13 +26,13 @@ GitHub, clone, and develop on a branch. Steps:
2626
$ git clone git@github.com:YourLogin/scikit-learn.git
2727
$ cd scikit-learn
2828
```
29-
29+
3030
3. Create a ``feature`` branch to hold your development changes:
3131

3232
```bash
3333
$ git checkout -b my-feature
3434
```
35-
35+
3636
Always use a ``feature`` branch. It's good practice to never work on the ``master`` branch!
3737

3838
4. Develop the feature on your feature branch. Add changed files using ``git add`` and then ``git commit`` files:
@@ -52,7 +52,7 @@ GitHub, clone, and develop on a branch. Steps:
5252
Click the 'Pull request' button to send your changes to the project's maintainers for
5353
review. This will send an email to the committers.
5454

55-
(If any of the above seems like magic to you, please look up the
55+
(If any of the above seems like magic to you, please look up the
5656
[Git documentation](https://git-scm.com/documentation) on the web, or ask a friend or another contributor for help.)
5757

5858
Pull Request Checklist
@@ -179,7 +179,7 @@ following rules before submitting:
179179
import scipy; print("SciPy", scipy.__version__)
180180
import sklearn; print("Scikit-Learn", sklearn.__version__)
181181
```
182-
182+
183183
- Please be specific about what estimators and/or functions are involved
184184
and the shape of the data, as appropriate; please include a
185185
[reproducible](http://stackoverflow.com/help/mcve) code snippet
@@ -228,5 +228,5 @@ Further Information
228228
-------------------
229229

230230
Visit the [Contributing Code](http://scikit-learn.org/stable/developers/index.html#coding-guidelines)
231-
section of the website for more information including conforming to the
231+
section of the website for more information including conforming to the
232232
API spec and profiling contributed code.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ trailing-spaces:
4949
find sklearn -name "*.py" -exec perl -pi -e 's/[ \t]*$$//' {} \;
5050

5151
cython:
52-
python build_tools/cythonize.py sklearn
52+
python setup.py build_src
5353

5454
ctags:
5555
# make tags for symbol based navigation in emacs and vim

README.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ It is currently maintained by a team of volunteers.
4040

4141
Website: http://scikit-learn.org
4242

43+
4344
Installation
4445
------------
4546

@@ -48,7 +49,7 @@ Dependencies
4849

4950
scikit-learn requires:
5051

51-
- Python (>= 2.6 or >= 3.3)
52+
- Python (>= 2.7 or >= 3.3)
5253
- NumPy (>= 1.6.1)
5354
- SciPy (>= 0.9)
5455

@@ -117,7 +118,7 @@ interact with tests that use ``multiprocessing``::
117118

118119
C:\Python34\python.exe -c "import nose; nose.main()" -v sklearn
119120

120-
See the web page http://scikit-learn.org/stable/install.html#testing
121+
See the web page http://scikit-learn.org/stable/developers/advanced_installation.html#testing
121122
for more information.
122123

123124
Random number generation can be controlled during testing by setting
@@ -136,7 +137,7 @@ Project History
136137

137138
The project was started in 2007 by David Cournapeau as a Google Summer
138139
of Code project, and since then many volunteers have contributed. See
139-
the AUTHORS.rst file for a complete list of contributors.
140+
the `AUTHORS.rst <AUTHORS.rst>`_ file for a complete list of contributors.
140141

141142
The project is currently maintained by a team of volunteers.
142143

benchmarks/bench_plot_fastkmeans.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from collections import defaultdict
44
from time import time
55

6+
import six
7+
68
import numpy as np
79
from numpy import random as nr
810

@@ -102,15 +104,15 @@ def compute_bench_2(chunks):
102104
results = compute_bench(samples_range, features_range)
103105
results_2 = compute_bench_2(chunks)
104106

105-
max_time = max([max(i) for i in [t for (label, t) in results.iteritems()
106-
if "speed" in label]])
107+
max_time = max([max(i) for i in [t for (label, t) in six.iteritems(results)
108+
if "speed" in label]])
107109
max_inertia = max([max(i) for i in [
108-
t for (label, t) in results.iteritems()
109-
if "speed" not in label]])
110+
t for (label, t) in six.iteritems(results)
111+
if "speed" not in label]])
110112

111113
fig = plt.figure('scikit-learn K-Means benchmark results')
112114
for c, (label, timings) in zip('brcy',
113-
sorted(results.iteritems())):
115+
sorted(six.iteritems(results))):
114116
if 'speed' in label:
115117
ax = fig.add_subplot(2, 2, 1, projection='3d')
116118
ax.set_zlim3d(0.0, max_time * 1.1)
@@ -127,7 +129,7 @@ def compute_bench_2(chunks):
127129

128130
i = 0
129131
for c, (label, timings) in zip('br',
130-
sorted(results_2.iteritems())):
132+
sorted(six.iteritems(results_2))):
131133
i += 1
132134
ax = fig.add_subplot(2, 2, i + 2)
133135
y = np.asarray(timings)

0 commit comments

Comments
 (0)