Export a model to JSON
The trained CatBoost model can be saved as a JSON file. This file can be accessed later to apply the model. Refer to the CatBoost JSON model tutorial for format details.
Choose the implementation for more details.
Python package
methods | Parameters | description |
---|---|---|
- save_model (CatBoost) - save_model (CatBoostClassifier) - save_model (CatBoostRegressor) |
format |
The output format of the model. Set this parameter to “json”. |
Command-line version
The following command keys can be specified for the corresponding commands and are used when the model is trained:
command | Command keys | description |
---|---|---|
catboost fit | --model-format |
A comma-separated list of output model formats. Set the value of this key to “json”. |