R: Save the model

catboost.save_model {catboost} | R Documentation

## Save the model

### Description

Save the model to a file.

Note: Feature importance (see https://catboost.ai/docs/concepts/fstr.html#fstr) is not saved when using this function.

### Usage

    catboost.save_model(
      model,
      model_path,
      file_format = "cbm",
      export_parameters = NULL,
      pool = NULL
    )

### Arguments

`model` | The model to be saved. Default value: Required argument
`model_path` | The path to the resulting binary file with the model description. Used for solving other machine learning problems (for instance, applying a model). Default value: Required argument
`file_format` | specified format model from a file. Possible values: 'cbm' For catboost binary format 'coreml' To export into Apple CoreML format 'onnx' To export into ONNX-ML format 'pmml' To export into PMML format 'cpp' To export as C++ code 'python' To export as Python code. Default value: 'cbm'
`export_parameters` | are a parameters for CoreML or PMML export.
`pool` | is training pool.

### Value

Status, the result of model shrinking. TRUE if shrinking succeeded, FALSE otherwise.

### See Also

https://catboost.ai/docs/features/export-model-to-core-ml.html

[Package catboost version 0.26.1 Index]