Update JSON parser demo with categorical feature. (#8401)
- Parse categorical features in the Python example. - Add tests. - Update document.
This commit is contained in:
@@ -245,11 +245,11 @@ JSON Schema
|
||||
|
||||
Another important feature of JSON format is a documented `schema
|
||||
<https://json-schema.org/>`__, based on which one can easily reuse the output model from
|
||||
XGBoost. Here is the initial draft of JSON schema for the output model (not
|
||||
serialization, which will not be stable as noted above). It's subject to change due to
|
||||
the beta status. For an example of parsing XGBoost tree model, see ``/demo/json-model``.
|
||||
Please notice the "weight_drop" field used in "dart" booster. XGBoost does not scale tree
|
||||
leaf directly, instead it saves the weights as a separated array.
|
||||
XGBoost. Here is the JSON schema for the output model (not serialization, which will not
|
||||
be stable as noted above). For an example of parsing XGBoost tree model, see
|
||||
``/demo/json-model``. Please notice the "weight_drop" field used in "dart" booster.
|
||||
XGBoost does not scale tree leaf directly, instead it saves the weights as a separated
|
||||
array.
|
||||
|
||||
.. include:: ../model.schema
|
||||
:code: json
|
||||
|
||||
Reference in New Issue
Block a user