Skip to content

Commit 23ccf0f

Browse files
committed
update function names to reflect recent renaming
1 parent 7688c84 commit 23ccf0f

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

examples/create_upload_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# connects to the test server instead. This prevents the live server from
1818
# crowding with example datasets, tasks, studies, and so on.
1919

20-
openml.config.start_use_example_configuration()
20+
openml.config.stop_using_configuration_for_example()
2121
############################################################################
2222

2323
############################################################################
@@ -315,4 +315,4 @@
315315

316316

317317
############################################################################
318-
openml.config.stop_use_example_configuration()
318+
openml.config.stop_using_configuration_for_example()

examples/datasets_tutorial.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
66
How to list and download datasets.
77
"""
8+
############################################################################
9+
import openml
10+
import pandas as pd
811

912
############################################################################
1013
# .. warning:: This example uploads data. For that reason, this example
1114
# connects to the test server instead. This prevents the live server from
1215
# crowding with example datasets, tasks, studies, and so on.
1316

14-
openml.config.start_use_example_configuration()
15-
############################################################################
16-
17-
import openml
18-
import pandas as pd
17+
openml.config.start_using_configuration_for_example()
1918

2019
############################################################################
2120
# List datasets
@@ -112,4 +111,4 @@
112111

113112

114113
############################################################################
115-
openml.config.stop_use_example_configuration()
114+
openml.config.stop_using_configuration_for_example()

examples/flows_and_runs_tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
# connects to the test server instead. This prevents the live server from
1919
# crowding with example datasets, tasks, studies, and so on.
2020

21-
openml.config.start_use_example_configuration()
22-
# NOTE: Dataset 68 exists on the test server https://test.openml.org/d/68
21+
openml.config.start_using_configuration_for_example()
22+
# NOTE: We are using dataset 68 from the test server: https://test.openml.org/d/68
2323
dataset = openml.datasets.get_dataset(68)
2424
X, y = dataset.get_data(
2525
dataset_format='array',
@@ -166,4 +166,4 @@
166166

167167

168168
############################################################################
169-
openml.config.stop_use_example_configuration()
169+
openml.config.stop_using_configuration_for_example()

examples/introduction_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import openml
5353
from sklearn import neighbors
5454

55-
openml.config.start_use_example_configuration()
55+
openml.config.start_using_configuration_for_example()
5656

5757
############################################################################
5858
# When using the main server, instead make sure your apikey is configured.
@@ -93,4 +93,4 @@
9393
print("kNN on %s: http://test.openml.org/r/%d" % (data.name, myrun.run_id))
9494

9595
############################################################################
96-
openml.config.stop_use_example_configuration()
96+
openml.config.stop_using_configuration_for_example()

examples/run_setup_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
root = logging.getLogger()
4141
root.setLevel(logging.INFO)
42-
openml.config.start_use_example_configuration()
42+
openml.config.start_using_configuration_for_example()
4343

4444
###############################################################################
4545
# 1) Create a flow and use it to solve a task
@@ -107,4 +107,4 @@
107107

108108
###############################################################################
109109

110-
openml.config.stop_use_example_configuration()
110+
openml.config.stop_using_configuration_for_example()

0 commit comments

Comments
 (0)