Skip to content

Commit fcfa7d9

Browse files
authored
Merge branch 'develop' into setup_caching
2 parents 264677a + 194706d commit fcfa7d9

47 files changed

Lines changed: 2201 additions & 1289 deletions

Some content is hidden

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

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,3 @@ target/
7373
# IDE
7474
.idea
7575
*.swp
76-
77-
# Other
78-
*.pkl

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ env:
1515
- TEST_DIR=/tmp/test_dir/
1616
- MODULE=openml
1717
matrix:
18-
- DISTRIB="conda" PYTHON_VERSION="2.7" NUMPY_VERSION="1.11" SCIPY_VERSION="0.17.0" CYTHON_VERSION="0.21" SKLEARN_VERSION="0.18.1"
19-
- DISTRIB="conda" PYTHON_VERSION="3.4" NUMPY_VERSION="1.11" SCIPY_VERSION="0.17.0" CYTHON_VERSION="0.23.4" SKLEARN_VERSION="0.18.1"
20-
- DISTRIB="conda" PYTHON_VERSION="3.5" NUMPY_VERSION="1.11" SCIPY_VERSION="0.17.0" CYTHON_VERSION="0.23.4" SKLEARN_VERSION="0.18.1"
21-
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" NUMPY_VERSION="1.12.1" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.25.2" SKLEARN_VERSION="0.18.1"
18+
- DISTRIB="conda" PYTHON_VERSION="2.7" SKLEARN_VERSION="0.18.2"
19+
- DISTRIB="conda" PYTHON_VERSION="3.4" SKLEARN_VERSION="0.18.2"
20+
- DISTRIB="conda" PYTHON_VERSION="3.5" SKLEARN_VERSION="0.18.2"
21+
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" SKLEARN_VERSION="0.18.2"
22+
- DISTRIB="conda" PYTHON_VERSION="3.6" EXAMPLES="true" SKLEARN_VERSION="0.18.2"
23+
- DISTRIB="conda" PYTHON_VERSION="3.6" DOCTEST="true" SKLEARN_VERSION="0.18.2"
2224

2325
install: source ci_scripts/install.sh
2426
script: bash ci_scripts/test.sh

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2014-2017, Matthias Feurer, Jan van Rijn, Andreas Müller,
4+
Joaquin Vanschoren and others.
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name of the copyright holder nor the names of its
18+
contributors may be used to endorse or promote products derived from
19+
this software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ci_scripts/install.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@ popd
2424

2525
# Configure the conda environment and put it in the path using the
2626
# provided versions
27-
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
28-
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION cython=$CYTHON_VERSION \
29-
scikit-learn=$SKLEARN_VERSION pandas
27+
conda create -n testenv --yes python=$PYTHON_VERSION pip
3028
source activate testenv
29+
pip install nose numpy scipy cython scikit-learn==$SKLEARN_VERSION \
30+
oslo.concurrency
3131

32-
pip install matplotlib jupyter notebook nbconvert nbformat jupyter_client ipython ipykernel
32+
if [[ "$EXAMPLES" == "true" ]]; then
33+
pip install matplotlib jupyter notebook nbconvert nbformat jupyter_client \
34+
ipython ipykernel pandas seaborn
35+
fi
36+
if [[ "$DOCTEST" == "true" ]]; then
37+
pip install pandas sphinx_bootstrap_theme
38+
fi
3339
if [[ "$COVERAGE" == "true" ]]; then
3440
pip install codecov
3541
fi

ci_scripts/test.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ mkdir -p $TEST_DIR
66

77
cwd=`pwd`
88
test_dir=$cwd/tests
9+
doctest_dir=$cwd/doc
910

1011
cd $TEST_DIR
1112

12-
if [[ "$COVERAGE" == "true" ]]; then
13-
nosetests -sv --with-coverage --cover-package=$MODULE $test_dir
13+
if [[ "$EXAMPLES" == "true" ]]; then
14+
nosetests -sv $test_dir/test_examples/
15+
elif [[ "$DOCTEST" == "true" ]]; then
16+
python -m doctest $doctest_dir/usage.rst
17+
elif [[ "$COVERAGE" == "true" ]]; then
18+
nosetests --processes=4 --process-timeout=600 -sv --ignore-files="test_OpenMLDemo\.py" --with-coverage --cover-package=$MODULE $test_dir
1419
else
15-
nosetests -sv $test_dir
20+
nosetests --processes=4 --process-timeout=600 -sv --ignore-files="test_OpenMLDemo\.py" $test_dir
1621
fi

doc/api.rst

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Top-level Classes
1818
OpenMLTask
1919
OpenMLSplit
2020
OpenMLFlow
21+
OpenMLEvaluation
2122

2223

2324
:mod:`openml.datasets`: Dataset Functions
@@ -33,6 +34,30 @@ Top-level Classes
3334
get_datasets
3435
list_datasets
3536

37+
:mod:`openml.evaluations`: Evaluation Functions
38+
-----------------------------------------------
39+
.. currentmodule:: openml.evaluations
40+
41+
.. autosummary::
42+
:toctree: generated/
43+
:template: function.rst
44+
45+
list_evaluations
46+
47+
:mod:`openml.flows`: Flow Functions
48+
-----------------------------------
49+
.. currentmodule:: openml.flows
50+
51+
.. autosummary::
52+
:toctree: generated/
53+
:template: function.rst
54+
55+
flow_exists
56+
flow_to_sklearn
57+
get_flow
58+
list_flows
59+
sklearn_to_flow
60+
3661
:mod:`openml.runs`: Run Functions
3762
----------------------------------
3863
.. currentmodule:: openml.runs
@@ -41,14 +66,37 @@ Top-level Classes
4166
:toctree: generated/
4267
:template: function.rst
4368

44-
run_task
45-
get_run
46-
list_runs
47-
list_runs_by_flow
48-
list_runs_by_tag
49-
list_runs_by_task
50-
list_runs_by_uploader
51-
list_runs_by_filters
69+
get_run
70+
get_runs
71+
get_run_trace
72+
initialize_model_from_run
73+
initialize_model_from_trace
74+
list_runs
75+
run_model_on_task
76+
run_flow_on_task
77+
78+
:mod:`openml.setups`: Setup Functions
79+
-------------------------------------
80+
.. currentmodule:: openml.setups
81+
82+
.. autosummary::
83+
:toctree: generated/
84+
:template: function.rst
85+
86+
get_setup
87+
initialize_model
88+
list_setups
89+
setup_exists
90+
91+
:mod:`openml.study`: Study Functions
92+
------------------------------------
93+
.. currentmodule:: openml.study
94+
95+
.. autosummary::
96+
:toctree: generated/
97+
:template: function.rst
98+
99+
get_study
52100

53101
:mod:`openml.tasks`: Task Functions
54102
-----------------------------------
@@ -59,13 +107,8 @@ Top-level Classes
59107
:template: function.rst
60108

61109
get_task
110+
get_tasks
62111
list_tasks
63112

64-
:mod:`openml.flows`: Flow Functions
65-
-----------------------------------
66-
.. currentmodule:: openml.flow
67113

68-
.. autosummary::
69-
:toctree: generated/
70-
:template: function.rst
71114

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363

6464
# General information about the project.
6565
project = u'OpenML'
66-
copyright = u'2014-2016, Matthias Feurer, Andreas Müller, Farzan Majdani, ' \
67-
u'Joaquin Vanschoren and Pieter Gijsbers'
66+
copyright = u'2014-2017, Matthias Feurer, Andreas Müller, Farzan Majdani, ' \
67+
u'Joaquin Vanschoren, Jan van Rijn and Pieter Gijsbers'
6868

6969
# The version info for the project you're documenting, acts as replacement for
7070
# |version| and |release|, also used in various other places throughout the

0 commit comments

Comments
 (0)