Skip to content

Commit 60f1453

Browse files
authored
Merge branch 'develop' into flynt
2 parents d66cd46 + 483f467 commit 60f1453

56 files changed

Lines changed: 1329 additions & 1996 deletions

Some content is hidden

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

.all-contributorsrc

Lines changed: 0 additions & 36 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 97 additions & 140 deletions
Large diffs are not rendered by default.

ISSUE_TEMPLATE.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!--
2+
It is recommended to check that your issue complies with the
3+
following rules before submitting:
4+
5+
- Verify that your issue is not being currently addressed by other
6+
issues (https://github.com/openml/openml-python/issues)
7+
or pull requests (https://github.com/openml/openml-python/pulls).
8+
9+
- Please ensure all code snippets and error messages are formatted in
10+
appropriate code blocks. See https://help.github.com/articles/creating-and-highlighting-code-blocks
11+
-->
12+
113
#### Description
214
<!-- Example: Joblib Error thrown when calling fit on LatentDirichletAllocation with evaluate_every > 0-->
315

@@ -20,7 +32,10 @@ it in the issue: https://gist.github.com
2032

2133
#### Versions
2234
<!--
23-
Please run the following snippet and paste the output below.
35+
Please include your operating system type and version number, as well
36+
as your Python, openml, scikit-learn, numpy, and scipy versions. This information
37+
can be found by running the following code snippet:
38+
2439
import platform; print(platform.platform())
2540
import sys; print("Python", sys.version)
2641
import numpy; print("NumPy", numpy.__version__)
@@ -30,4 +45,5 @@ import openml; print("OpenML", openml.__version__)
3045
-->
3146

3247

33-
<!-- Thanks for contributing! -->
48+
<!-- Thanks for contributing! -->
49+

PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ the contribution guidelines: https://github.com/openml/openml-python/blob/main/C
44
55
Please make sure that:
66
7+
* the title of the pull request is descriptive
78
* this pull requests is against the `develop` branch
8-
* you updated all docs, this includes the changelog (doc/progress.rst)
99
* for any new function or class added, please add it to doc/api.rst
1010
* the list of classes and functions should be alphabetical
1111
* for any new functionality, consider adding a relevant example
@@ -14,15 +14,20 @@ Please make sure that:
1414
* add the BSD 3-Clause license to any new file created
1515
-->
1616

17-
#### Reference Issue
18-
<!-- Example: Fixes #1234 -->
17+
#### Metadata
18+
* Reference Issue: <!-- Example: Fixes #1234 or NA-->
19+
* New Tests Added: <!-- Yes/No/NA -->
20+
* Documentation Updated: <!-- Yes/No/NA -->
21+
* Change Log Entry: <!-- Short String, example: "Add new function `foo()` to module `bar`"; or "Fixes a bug with `bar`" -->
1922

2023

21-
#### What does this PR implement/fix? Explain your changes.
22-
23-
24-
#### How should this PR be tested?
25-
24+
#### Details
25+
<!--
26+
if necessary, please share the following:
2627
27-
#### Any other comments?
28+
* What does this PR implement/fix? Explain your changes.
29+
* Why is this change necessary? What is the problem it solves?
30+
* How can I reproduce the issue this PR is solving and its solution?
31+
* Any other comments?
32+
-->
2833

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div id="user-content-toc">
66
<ul align="center" style="list-style: none;">
77
<summary>
8-
<img src="https://github.com/openml/openml.org/blob/master/app/public/static/svg/logo.svg" width="50" alt="OpenML Logo"/>
8+
<img src="https://github.com/openml/openml.org/blob/master/app/public/static/svg/logo.svg" width="50" alt="OpenML Logo"/>
99
<h1>OpenML-Python</h1>
1010
<img src="https://github.com/openml/docs/blob/master/docs/img/python.png" width="50" alt="Python Logo"/>
1111
</summary>

doc/contributing.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ In particular, a few ways to contribute to openml-python are:
1616
* A contribution to an openml-python extension. An extension package allows OpenML to interface
1717
with a machine learning package (such as scikit-learn or keras). These extensions
1818
are hosted in separate repositories and may have their own guidelines.
19-
For more information, see the :ref:`extensions` below.
20-
21-
* Bug reports. If something doesn't work for you or is cumbersome, please open a new issue to let
22-
us know about the problem. See `this section <https://github.com/openml/openml-python/blob/main/CONTRIBUTING.md>`_.
19+
For more information, see the :ref:`extensions`.
2320

2421
* `Cite OpenML <https://www.openml.org/cite>`_ if you use it in a scientific publication.
2522

examples/20_basic/simple_datasets_tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# List datasets
2020
# =============
2121

22-
datasets_df = openml.datasets.list_datasets(output_format="dataframe")
22+
datasets_df = openml.datasets.list_datasets()
2323
print(datasets_df.head(n=10))
2424

2525
############################################################################
@@ -48,7 +48,7 @@
4848
# attribute_names - the names of the features for the examples (X) and
4949
# target feature (y)
5050
X, y, categorical_indicator, attribute_names = dataset.get_data(
51-
dataset_format="dataframe", target=dataset.default_target_attribute
51+
target=dataset.default_target_attribute
5252
)
5353

5454
############################################################################
@@ -63,9 +63,9 @@
6363
# Visualize the dataset
6464
# =====================
6565

66+
import matplotlib.pyplot as plt
6667
import pandas as pd
6768
import seaborn as sns
68-
import matplotlib.pyplot as plt
6969

7070
sns.set_style("darkgrid")
7171

examples/20_basic/simple_flows_and_runs_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
# License: BSD 3-Clause
99

10-
import openml
1110
from sklearn import ensemble, neighbors
1211

12+
import openml
1313

1414
############################################################################
1515
# .. warning::

examples/30_extended/datasets_tutorial.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,24 @@
88

99
# License: BSD 3-Clauses
1010

11-
import openml
1211
import pandas as pd
12+
13+
import openml
1314
from openml.datasets import edit_dataset, fork_dataset, get_dataset
1415

1516
############################################################################
1617
# Exercise 0
1718
# **********
1819
#
19-
# * List datasets
20-
#
21-
# * Use the output_format parameter to select output type
22-
# * Default gives 'dict' (other option: 'dataframe', see below)
23-
#
24-
# Note: list_datasets will return a pandas dataframe by default from 0.15. When using
25-
# openml-python 0.14, `list_datasets` will warn you to use output_format='dataframe'.
26-
datalist = openml.datasets.list_datasets(output_format="dataframe")
20+
# * List datasets and return a dataframe
21+
datalist = openml.datasets.list_datasets()
2722
datalist = datalist[["did", "name", "NumberOfInstances", "NumberOfFeatures", "NumberOfClasses"]]
2823

2924
print(f"First 10 of {len(datalist)} datasets...")
3025
datalist.head(n=10)
3126

3227
# The same can be done with lesser lines of code
33-
openml_df = openml.datasets.list_datasets(output_format="dataframe")
28+
openml_df = openml.datasets.list_datasets()
3429
openml_df.head(n=10)
3530

3631
############################################################################

examples/30_extended/fetch_evaluations_tutorial.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
# Required filters can be applied to retrieve results from runs as required.
3333

3434
# We shall retrieve a small set (only 10 entries) to test the listing function for evaluations
35-
openml.evaluations.list_evaluations(
36-
function="predictive_accuracy", size=10, output_format="dataframe"
37-
)
35+
openml.evaluations.list_evaluations(function="predictive_accuracy", size=10)
3836

3937
# Using other evaluation metrics, 'precision' in this case
4038
evals = openml.evaluations.list_evaluations(
@@ -162,7 +160,10 @@ def plot_flow_compare(evaluations, top_n=10, metric="predictive_accuracy"):
162160
# List evaluations in descending order based on predictive_accuracy with
163161
# hyperparameters
164162
evals_setups = openml.evaluations.list_evaluations_setups(
165-
function="predictive_accuracy", tasks=[31], size=100, sort_order="desc"
163+
function="predictive_accuracy",
164+
tasks=[31],
165+
size=100,
166+
sort_order="desc",
166167
)
167168

168169
""

0 commit comments

Comments
 (0)