Skip to content

Commit

Permalink
Add JSON schema for categorical splits.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Oct 6, 2020
1 parent 1013224 commit e055dc1
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion doc/model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,30 @@
"items": {
"type": "boolean"
}
},
"categories": {
"type": "array",
"items": {
"type": "integer"
}
},
"categories_nodes": {
"type": "array",
"items": {
"type": "integer"
}
},
"categories_segments": {
"type": "array",
"items": {
"type": "integer"
}
},
"categorical_sizes": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"required": [
Expand All @@ -105,7 +129,11 @@
"parents",
"split_indices",
"split_conditions",
"default_left"
"default_left",
"categories",
"categories_nodes",
"categories_segments",
"categories_sizes"
]
}
},
Expand Down

0 comments on commit e055dc1

Please sign in to comment.