Skip to content

Commit f0ad953

Browse files
committed
fix examples
1 parent 23ccf0f commit f0ad953

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/create_upload_tutorial.py

Lines changed: 1 addition & 1 deletion
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.stop_using_configuration_for_example()
20+
openml.config.start_using_configuration_for_example()
2121
############################################################################
2222

2323
############################################################################

examples/sklearn/openml_run_example.py

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

15-
openml.config.start_use_example_configuration()
15+
openml.config.start_using_configuration_for_example()
1616
############################################################################
1717

1818
# Uncomment and set your OpenML key. Don't share your key with others.
@@ -37,4 +37,4 @@
3737
print('URL for run: %s/run/%d' % (openml.config.server, run.run_id))
3838

3939
############################################################################
40-
openml.config.stop_use_example_configuration()
40+
openml.config.stop_using_configuration_for_example()

examples/tasks_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
# single task by its ID, and one which takes a list of IDs and downloads
125125
# all of these tasks:
126126

127-
task_id = 1
127+
task_id = 31
128128
task = openml.tasks.get_task(task_id)
129129

130130
############################################################################
@@ -135,6 +135,6 @@
135135
############################################################################
136136
# And:
137137

138-
ids = [1, 2, 19, 97, 403]
138+
ids = [2, 1891, 31, 9983]
139139
tasks = openml.tasks.get_tasks(ids)
140140
pprint(tasks[0])

0 commit comments

Comments
 (0)