-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtree.schema.json
More file actions
50 lines (50 loc) · 1.32 KB
/
tree.schema.json
File metadata and controls
50 lines (50 loc) · 1.32 KB
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "tree",
"description": "Feature tree",
"type": "object",
"properties": {
"active_prob": {
"description": "Probability this feature is active conditional on its parent being active",
"type": "number",
"minimum": 0,
"maximum": 1
},
"id": {
"description": "Feature name",
"type": "string"
},
"mutually_exclusive_children": {
"description": "Are the feature's children mutually exclusive?",
"type": "boolean",
"default": false
},
"is_binary": {
"description": "Is this feature binary?",
"type": "boolean",
"default": true
},
"is_read_out": {
"description": "Is this feature read-out?",
"type": "boolean",
"default": true
},
"children": {
"description": "Child features",
"type": "array",
"items": {
"$ref": "#/definitions/tree"
},
"default": []
}
},
"required": [
"active_prob"
],
"additionalProperties": false,
"definitions": {
"tree": {
"$ref": "#"
}
}
}