|
9 | 9 | import openml |
10 | 10 | import pandas as pd |
11 | 11 |
|
12 | | -############################################################################ |
13 | | -# .. warning:: This example uploads data. For that reason, this example |
14 | | -# connects to the test server instead. This prevents the live server from |
15 | | -# crowding with example datasets, tasks, studies, and so on. |
16 | | - |
17 | | -openml.config.start_using_configuration_for_example() |
18 | | - |
19 | 12 | ############################################################################ |
20 | 13 | # List datasets |
21 | 14 | # ============= |
|
50 | 43 | # Download datasets |
51 | 44 | # ================= |
52 | 45 |
|
53 | | -# This is done based on the dataset ID ('did'). |
54 | | -dataset = openml.datasets.get_dataset(68) |
55 | | -# NOTE: Dataset 68 exists on the test server https://test.openml.org/d/68 |
| 46 | +# This is done based on the dataset ID. |
| 47 | +dataset = openml.datasets.get_dataset(1471) |
56 | 48 |
|
57 | 49 | # Print a summary |
58 | 50 | print("This is dataset '%s', the target feature is '%s'" % |
|
91 | 83 | # data file. The dataset object can be used as normal. |
92 | 84 | # Whenever you use any functionality that requires the data, |
93 | 85 | # such as `get_data`, the data will be downloaded. |
94 | | -dataset = openml.datasets.get_dataset(68, download_data=False) |
95 | | -# NOTE: Dataset 68 exists on the test server https://test.openml.org/d/68 |
| 86 | +dataset = openml.datasets.get_dataset(1471, download_data=False) |
96 | 87 |
|
97 | 88 | ############################################################################ |
98 | 89 | # Exercise 2 |
|
108 | 99 | alpha=.8, |
109 | 100 | cmap='plasma' |
110 | 101 | ) |
111 | | - |
112 | | - |
113 | | -############################################################################ |
114 | | -openml.config.stop_using_configuration_for_example() |
0 commit comments