1
- using HTTP
2
- using JSON
3
- import ARFFFiles
4
- import ScientificTypes: Continuous, Count, Textual, Multiclass, coerce, autotype
5
- using Markdown
6
-
7
1
const API_URL = " https://www.openml.org/api/v1/json"
8
2
9
3
# Data API
@@ -45,7 +39,7 @@ function load_Dataset_Description(id::Int; api_key::String="")
45
39
end
46
40
47
41
"""
48
- MLJOpenML .load(id; parser = :arff)
42
+ OpenML .load(id; parser = :arff)
49
43
50
44
Load the OpenML dataset with specified `id`, from those listed by
51
45
[`list_datasets`](@ref) or on the [OpenML site](https://www.openml.org/search?type=data).
@@ -59,7 +53,7 @@ Returns a table.
59
53
60
54
```julia
61
55
using DataFrames
62
- table = MLJOpenML .load(61);
56
+ table = OpenML .load(61);
63
57
df = DataFrame(table);
64
58
```
65
59
"""
@@ -225,7 +219,7 @@ API](https://www.openml.org/api_docs#!/data/get_data_list_filters).
225
219
```
226
220
julia> using DataFrames
227
221
228
- julia> ds = MLJOpenML .list_datasets(
222
+ julia> ds = OpenML .list_datasets(
229
223
tag = "OpenML100",
230
224
filter = "number_instances/100..1000/number_features/1..10",
231
225
output_format = DataFrame
@@ -244,7 +238,7 @@ function list_datasets(; tag = nothing, filter = "", filters=filter,
244
238
return
245
239
end
246
240
end
247
- data = MLJOpenML . load_List_And_Filter (filters; api_key = api_key)
241
+ data = OpenML . load_List_And_Filter (filters; api_key = api_key)
248
242
datasets = data[" data" ][" dataset" ]
249
243
qualities = Symbol .(union (vcat ([vcat (qualitynames .(entry[" quality" ])... ) for entry in datasets]. .. )))
250
244
result = merge ((id = Int[], name = String[], status = String[]),
@@ -292,7 +286,7 @@ Use [`list_datasets`](@ref) to browse available data sets.
292
286
293
287
# Examples
294
288
```
295
- julia> MLJOpenML .describe_dataset(6)
289
+ julia> OpenML .describe_dataset(6)
296
290
Author: David J. Slate Source: UCI
297
291
(https://archive.ics.uci.edu/ml/datasets/Letter+Recognition) - 01-01-1991 Please cite: P.
298
292
W. Frey and D. J. Slate. "Letter Recognition Using Holland-style Adaptive Classifiers".
0 commit comments