-
Notifications
You must be signed in to change notification settings - Fork 134
/
metadata.schema.json
94 lines (94 loc) · 2.57 KB
/
metadata.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"$id": "https://github.com/EpistasisLab/pmlb/metadata.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "PMLB dataset metadata",
"type": "object",
"required": [
"dataset",
"description",
"source",
"task",
"target",
"features"
],
"properties": {
"dataset": {
"type": "string",
"description": "Dataset name (required)."
},
"description": {
"type": "string",
"description": "Dataset description (required),"
},
"source": {
"type": "string",
"description": "URL link to the source from where the dataset was retrieved (required)."
},
"publication": {
"type": "string",
"description": "Study that generated the dataset (doi, pmid, pmcid, or url)."
},
"task": {
"type": "string",
"description": "\"classification\" or \"regression\" (required)."
},
"keywords": {
"type": "array",
"items": {
"type": "string"
},
"description": "Descriptive terms for the dataset, e.g., bioinformatics, images, economics, etc."
},
"target": { "$ref": "#/definitions/target" },
"features": {
"type": "array",
"items": { "$ref": "#/definitions/feature" }
},
},
"definitions": {
"target": {
"properties": {
"type": {
"type": "string",
"description": "One of \"continuous\", \"nominal\", or \"ordinal\"."
},
"description": {
"type": "string",
"description": "Description of the endpoint/outcome. Include units when appropriate."
},
"code": {
"type": "string",
"description": "Description of values and what they mean, e.g., 'Control = 0, Case = 1'."
}
}
},
"feature": {
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the feature (required)."
},
"type": {
"type": "string",
"description": "One of \"continuous\", \"nominal\", or \"ordinal\"."
},
"description": {
"type": "string",
"description": "What the feature measures or indicates. Include units when appropriate."
},
"code": {
"type": "string",
"description": "Description of values and what they mean, e.g., 'Control = 0, Case = 1'."
},
"transform": {
"type": "string",
"description": "Any transformations applied to the feature, e.g., 'log scaled'."
},
}
}
}
}