Implementation of the scikit-learn API for CatBoost classification. Parameters ---------- iterations : int, [default=500] Max count of trees. range: [1,+inf) learning_rate : float, [default value is selected automatically for binary classification with other par
| 4837 | |
| 4838 | |
| 4839 | class CatBoostClassifier(CatBoost): |
| 4840 | """ |
| 4841 | Implementation of the scikit-learn API for CatBoost classification. |
| 4842 | |
| 4843 | Parameters |
| 4844 | ---------- |
| 4845 | iterations : int, [default=500] |
| 4846 | Max count of trees. |
| 4847 | range: [1,+inf) |
| 4848 | learning_rate : float, [default value is selected automatically for binary classification with other parameters set to default. In all other cases default is 0.03] |
| 4849 | Step size shrinkage used in update to prevents overfitting. |
| 4850 | range: (0,1] |
| 4851 | depth : int, [default=6] |
| 4852 | Depth of a tree. All trees are the same depth. |
| 4853 | range: [1,16] |
| 4854 | l2_leaf_reg : float, [default=3.0] |
| 4855 | Coefficient at the L2 regularization term of the cost function. |
| 4856 | range: [0,+inf) |
| 4857 | model_size_reg : float, [default=None] |
| 4858 | Model size regularization coefficient. |
| 4859 | range: [0,+inf) |
| 4860 | rsm : float, [default=None] |
| 4861 | Subsample ratio of columns when constructing each tree. |
| 4862 | range: (0,1] |
| 4863 | loss_function : string or object, [default='Logloss'] |
| 4864 | The metric to use in training and also selector of the machine learning |
| 4865 | problem to solve. If string, then the name of a supported metric, |
| 4866 | optionally suffixed with parameter description. |
| 4867 | If object, it shall provide methods 'calc_ders_range' or 'calc_ders_multi'. |
| 4868 | border_count : int, [default = 254 for training on CPU or 128 for training on GPU] |
| 4869 | The number of partitions in numeric features binarization. Used in the preliminary calculation. |
| 4870 | range: [1,65535] on CPU, [1,255] on GPU |
| 4871 | feature_border_type : string, [default='GreedyLogSum'] |
| 4872 | The binarization mode in numeric features binarization. Used in the preliminary calculation. |
| 4873 | Possible values: |
| 4874 | - 'Median' |
| 4875 | - 'Uniform' |
| 4876 | - 'UniformAndQuantiles' |
| 4877 | - 'GreedyLogSum' |
| 4878 | - 'MaxLogSum' |
| 4879 | - 'MinEntropy' |
| 4880 | per_float_feature_quantization : list of strings, [default=None] |
| 4881 | List of float binarization descriptions. |
| 4882 | Format : described in documentation on catboost.ai |
| 4883 | Example 1: ['0:1024'] means that feature 0 will have 1024 borders. |
| 4884 | Example 2: ['0:border_count=1024', '1:border_count=1024', ...] means that two first features have 1024 borders. |
| 4885 | Example 3: ['0:nan_mode=Forbidden,border_count=32,border_type=GreedyLogSum', |
| 4886 | '1:nan_mode=Forbidden,border_count=32,border_type=GreedyLogSum'] - defines more quantization properties for first two features. |
| 4887 | input_borders : string or os.PathLike, [default=None] |
| 4888 | input file with borders used in numeric features binarization. |
| 4889 | output_borders : string, [default=None] |
| 4890 | output file for borders that were used in numeric features binarization. |
| 4891 | fold_permutation_block : int, [default=1] |
| 4892 | To accelerate the learning. |
| 4893 | The recommended value is within [1, 256]. On small samples, must be set to 1. |
| 4894 | range: [1,+inf) |
| 4895 | od_pval : float, [default=None] |
| 4896 | Use overfitting detector to stop training when reaching a specified threshold. |
no outgoing calls