catboost.save_pool(data, label = NULL, weight = NULL, baseline = NULL, pool_path = "data.pool", cd_path = "cd.pool")
Save the dataset to the CatBoost format. Files with the following data are created:
A data.frame or matrix with features.
The following column types are supported:
- factor. It is assumed that categorical features are given in this type of columns. A standard CatBoost processing procedure is applied to this type of columns:
- The values are converted to strings.
ConvertCatFeatureToFloatfunction is applied to the resulting string.
The target variables (in other words, the objects' label values) of the dataset.
Description The weights of objects.
A vector of formula values for all input objects. The training starts from these values for all input objects instead of starting from zero.
The path to the output file that contains the dataset description.
The path to the output file that contains the columns description.