šŸ•·ļø Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 169 (from laksa113)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ā„¹ļø Skipped - page is already crawled

šŸ“„
INDEXABLE
āœ…
CRAWLED
3 days ago
šŸ¤–
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.1 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://catboost.ai/docs/en/concepts/python-reference_catboostranker
Last Crawled2026-04-04 16:30:36 (3 days ago)
First Indexed2024-11-20 04:00:05 (1 year ago)
HTTP Status Code200
Meta TitleCatBoostRanker | CatBoost
Meta Descriptionclass CatBoostRanker (iterations= None, learning_rate= None, depth= None, l2_leaf_reg= None, model_size_reg= None, rsm= None, loss_function= 'YetiRank', border_
Meta Canonicalnull
Boilerpipe Text
class CatBoostRanker (iterations= None , learning_rate= None , depth= None , l2_leaf_reg= None , model_size_reg= None , rsm= None , loss_function= 'YetiRank' , border_count= None , feature_border_type= None , per_float_feature_quantization= None , input_borders= None , output_borders= None , fold_permutation_block= None , od_pval= None , od_wait= None , od_type= None , nan_mode= None , counter_calc_method= None , leaf_estimation_iterations= None , leaf_estimation_method= None , thread_count= None , random_seed= None , use_best_model= None , best_model_min_trees= None , verbose= None , silent= None , logging_level= None , metric_period= None , ctr_leaf_count_limit= None , store_all_simple_ctr= None , max_ctr_complexity= None , has_time= None , allow_const_label= None , target_border= None , one_hot_max_size= None , random_strength= None , name= None , ignored_features= None , train_dir= None , custom_metric= None , eval_metric= None , bagging_temperature= None , save_snapshot= None , snapshot_file= None , snapshot_interval= None , fold_len_multiplier= None , used_ram_limit= None , gpu_ram_part= None , pinned_memory_size= None , allow_writing_files= None , final_ctr_computation_mode= None , approx_on_full_history= None , boosting_type= None , simple_ctr= None , combinations_ctr= None , per_feature_ctr= None , ctr_description= None , ctr_target_border_count= None , task_type= None , device_config= None , devices= None , bootstrap_type= None , subsample= None , mvs_reg= None , sampling_frequency= None , sampling_unit= None , dev_score_calc_obj_block_size= None , dev_efb_max_buckets= None , sparse_features_conflict_fraction= None , max_depth= None , n_estimators= None , num_boost_round= None , num_trees= None , colsample_bylevel= None , random_state= None , reg_lambda= None , objective= None , eta= None , max_bin= None , gpu_cat_features_storage= None , data_partition= None , metadata= None , early_stopping_rounds= None , cat_features= None , grow_policy= None , min_data_in_leaf= None , min_child_samples= None , max_leaves= None , num_leaves= None , score_function= None , leaf_estimation_backtracking= None , ctr_history_unit= None , monotone_constraints= None , feature_weights= None , penalties_coefficient= None , first_feature_use_penalties= None , per_object_feature_penalties= None , model_shrink_rate= None , model_shrink_mode= None , langevin= None , diffusion_temperature= None , posterior_sampling= None , boost_from_average= None , text_features= None , tokenizers= None , dictionaries= None , feature_calcers= None , text_processing= None , embedding_features= None , fixed_binary_splits= None ) Purpose Implementation of the scikit-learn estimator API for CatBoost ranking. Supports model training, inference and auxiliary calculations like feature importance. Parameters metadata Description The key-value string pairs to store in the model's metadata storage after the training. Default value None cat_features Description A one-dimensional array of categorical columns indices (specified as integers) or names (specified as strings). This array can contain both indices and names for different elements. If any features in the cat_features parameter are specified as names instead of indices, feature names must be provided for the training dataset. Therefore, the type of the X parameter in the future calls of the fit function must be either catboost.Pool with defined feature names data or pandas.DataFrame or polars.DataFrame . Note If this parameter is not None and the training dataset passed as the value of the X parameter to the fit function of this class has the catboost.Pool type, CatBoost checks the equivalence of the categorical features indices specification in this object and the one in the catboost.Pool object. If this parameter is not None, passing objects of the catboost.FeaturesData type as the X parameter to the fit function of this class is prohibited. Default value None (all features are either considered numerical or of other types if specified precisely) SeeĀ  Python package training parameters for the full list of parameters. Note Some parameters duplicate the ones specified for theĀ  fit method. In these cases the values specified for theĀ  fit method take precedence. Attributes tree_count_ Return the number of trees in the model. This number can differ from the value specified in theĀ  --iterations training parameter in the following cases: The training is stopped by the overfitting detector . TheĀ  --use-best-model training parameter is set to True . feature_importances_ Return the calculated feature importances . The output data depends on the type of the model's loss function: Non-ranking loss functions — PredictionValuesChange Ranking loss functions — LossFunctionChange random_seed_ The random seed used for training. learning_rate_ The learning rate used for training. feature_names_ The names of features in the dataset. evals_result_ Return the values of metrics calculated during the training. best_score_ Return the best result for each metric calculated on each validation dataset. best_iteration_ Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. Methods fit Train a model. predict Apply the model to the given dataset. calc_leaf_indexes Returns indexes of leafs to which objects from pool are mapped by model trees. calc_feature_statistics Calculate and plot a set of statistics for the chosen feature. copy Copy theĀ CatBoost object. compare Draw train and evaluation metrics in Jupyter Notebook for two trained models. eval_metrics Calculate the specified metrics for the specified dataset. get_all_params Return the values of all training parameters (including the ones that are not explicitly specified by users). get_best_iteration Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. get_best_score Return the best result for each metric calculated on each validation dataset. get_borders Return the list of borders for numerical features. get_evals_result Return the values of metrics calculated during the training. get_feature_importance Calculate and return theĀ  feature importances . get_metadata Return a proxy object with metadata from the model's internal key-value string storage. get_object_importance Calculate the effect of objects from the train dataset on the optimized metric values for the objects from the input dataset: Positive values reflect that the optimized metric increases. Negative values reflect that the optimized metric decreases. get_param Return the value of the given parameter if it is explicitly by the user before starting the training. If this parameter is used with the default value, this function returns None. get_params Return the values of training parameters that are explicitly specified by the user. If all parameters are used with their default values, this function returns an empty dict. get_scale_and_bias Return the scale and bias of the model. These values affect the results of applying the model, since the model prediction results are calculated as follows: āˆ‘ l e a f _ v a l u e s ā‹… s c a l e + b i a s \sum leaf\_values \cdot scale + bias get_test_eval Return the formula values that were calculated for the objects from the validation dataset provided for training. grid_search A simple grid search over specified parameter values for a model. is_fitted Check whether the model is trained. load_model Load the model from a file. plot_predictions Sequentially vary the value of the specified features to put them into all buckets and calculate predictions for the input objects accordingly. plot_tree Visualize theĀ CatBoost decision trees. randomized_search A simple randomized search on hyperparameters. save_borders Save the model borders to a file. save_model Save the model to a file. score Calculate theĀ R2 metric for the objects in the given dataset. select_features Select the best features from the dataset using the Recursive Feature Elimination algorithm. set_feature_names Set names for all features in the model. set_params Set the training parameters. set_scale_and_bias Set the scale and bias. shrink Shrink the model. Only trees with indices from the range [ntree_start, ntree_end) are kept. staged_predict Apply the model to the given dataset and calculate the results taking into consideration only the trees in the range [0; i).
Markdown
[![Logo icon](https://yastatic.net/s3/locdoc/daas-static/catboost/71b237a322eec6f2889af0dae2a9c549.svg)](https://catboost.ai/ "CatBoost") - Installation - [Overview](https://catboost.ai/docs/en/concepts/en/concepts/installation) - Python package installation - CatBoost for Apache Spark installation - R package installation - Command-line version binary - Build from source - Key Features - Training parameters - Python package - [Quick start](https://catboost.ai/docs/en/concepts/en/concepts/python-quickstart) - CatBoost - CatBoostClassifier - CatBoostRanker - [Overview](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker) - [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_fit) - [predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_predict) - [Attributes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_attributes) - [calc\_leaf\_indexes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_calc_leaf_indexes) - [calc\_feature\_statistics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_calc_feature_statistics) - [compare](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_modelcompare) - [copy](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_copy) - [eval\_metrics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_eval-metrics) - [get\_all\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_all_params) - [get\_best\_iteration](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_best_iteration) - [get\_best\_score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_best_score) - [get\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_borders) - [get\_evals\_result](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_evals_result) - get\_feature\_importance - [get\_metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_metadata) - [get\_object\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_object_importance) - [get\_param](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_param) - [get\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_params) - [get\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_scale_and_bias) - [get\_test\_eval](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_test_eval) - [grid\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_grid_search) - [is\_fitted](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_is_fitted) - [load\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_load_model) - [plot\_predictions](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_plot_predictions) - [plot\_tree](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_plot_tree) - [randomized\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_randomized_search) - [save\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_save_model) - [save\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_save_borders) - [score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_score) - [select\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_select_features) - [set\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_scale_and_bias) - [set\_feature\_names](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_feature_names) - [set\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_params) - [shrink](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_shrink) - [staged\_predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_staged_predict) - [virtual\_ensembles\_predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_virtual_ensemblesranker_predict) - CatBoostRegressor - [cv](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_cv) - datasets - FeaturesData - MetricVisualizer - Pool - [sample\_gaussian\_process](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_sample_gaussian_process) - [sum\_models](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_sum_models) - [to\_classifier](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_to_classifier) - [to\_regressor](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_to_regressor) - [train](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_train) - Text processing - utils - [Usage examples](https://catboost.ai/docs/en/concepts/en/concepts/python-usages-examples) - CatBoost for Apache Spark - R package - Command-line version - Applying models - Objectives and metrics - Model analysis - Data format description - [Parameter tuning](https://catboost.ai/docs/en/concepts/en/concepts/parameter-tuning) - [Speeding up the training](https://catboost.ai/docs/en/concepts/en/concepts/speed-up-training) - Data visualization - Algorithm details - [FAQ](https://catboost.ai/docs/en/concepts/en/concepts/faq) - Educational materials - [Development and contributions](https://catboost.ai/docs/en/concepts/en/concepts/development-and-contributions) - [Contacts](https://catboost.ai/docs/en/concepts/en/concepts/contacts) Purpose ## In this article: - [Purpose](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#purpose) - [Parameters](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#parameters) - [metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#metadata) - [cat\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#cat_features) - [Attributes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#attributes) - [tree\_count\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#tree_count_) - [feature\_importances\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#feature_importances_) - [random\_seed\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#random_seed_) - [learning\_rate\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#learning_rate_) - [feature\_names\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#feature_names_) - [evals\_result\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#evals_result_) - [best\_score\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#best_score_) - [best\_iteration\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#best_iteration_) - [Methods](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#methods) - [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#fit) - [predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#predict) - [calc\_leaf\_indexes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#calc_leaf_indexes) - [calc\_feature\_statistics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#calc_feature_statistics) - [copy](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#copy) - [compare](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#compare) - [eval\_metrics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#eval_metrics) - [get\_all\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_all_params) - [get\_best\_iteration](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_best_iteration) - [get\_best\_score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_best_score) - [get\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_borders) - [get\_evals\_result](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_evals_result) - [get\_feature\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_feature_importance) - [get\_metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_metadata) - [get\_object\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_object_importance) - [get\_param](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_param) - [get\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_params) - [get\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_scale_and_bias) - [get\_test\_eval](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_test_eval) - [grid\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#grid_search) - [is\_fitted](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#is_fitted) - [load\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#load_model) - [plot\_predictions](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#plot_predictions) - [plot\_tree](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#plot_tree) - [randomized\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#randomized_search) - [save\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#save_borders) - [save\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#save_model) - [score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#score) - [select\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#select_features) - [set\_feature\_names](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_feature_names) - [set\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_params) - [set\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_scale_and_bias) - [shrink](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#shrink) - [staged\_predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#staged_predict) 1. Python package 2. CatBoostRanker 3. Overview # CatBoostRanker - [Purpose](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#purpose) - [Parameters](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#parameters) - [metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#metadata) - [cat\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#cat_features) - [Attributes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#attributes) - [tree\_count\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#tree_count_) - [feature\_importances\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#feature_importances_) - [random\_seed\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#random_seed_) - [learning\_rate\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#learning_rate_) - [feature\_names\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#feature_names_) - [evals\_result\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#evals_result_) - [best\_score\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#best_score_) - [best\_iteration\_](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#best_iteration_) - [Methods](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#methods) - [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#fit) - [predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#predict) - [calc\_leaf\_indexes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#calc_leaf_indexes) - [calc\_feature\_statistics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#calc_feature_statistics) - [copy](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#copy) - [compare](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#compare) - [eval\_metrics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#eval_metrics) - [get\_all\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_all_params) - [get\_best\_iteration](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_best_iteration) - [get\_best\_score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_best_score) - [get\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_borders) - [get\_evals\_result](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_evals_result) - [get\_feature\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_feature_importance) - [get\_metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_metadata) - [get\_object\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_object_importance) - [get\_param](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_param) - [get\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_params) - [get\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_scale_and_bias) - [get\_test\_eval](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#get_test_eval) - [grid\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#grid_search) - [is\_fitted](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#is_fitted) - [load\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#load_model) - [plot\_predictions](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#plot_predictions) - [plot\_tree](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#plot_tree) - [randomized\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#randomized_search) - [save\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#save_borders) - [save\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#save_model) - [score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#score) - [select\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#select_features) - [set\_feature\_names](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_feature_names) - [set\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_params) - [set\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#set_scale_and_bias) - [shrink](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#shrink) - [staged\_predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker#staged_predict) ``` class CatBoostRanker(iterations=None, learning_rate=None, depth=None, l2_leaf_reg=None, model_size_reg=None, rsm=None, loss_function='YetiRank', border_count=None, feature_border_type=None, per_float_feature_quantization=None, input_borders=None, output_borders=None, fold_permutation_block=None, od_pval=None, od_wait=None, od_type=None, nan_mode=None, counter_calc_method=None, leaf_estimation_iterations=None, leaf_estimation_method=None, thread_count=None, random_seed=None, use_best_model=None, best_model_min_trees=None, verbose=None, silent=None, logging_level=None, metric_period=None, ctr_leaf_count_limit=None, store_all_simple_ctr=None, max_ctr_complexity=None, has_time=None, allow_const_label=None, target_border=None, one_hot_max_size=None, random_strength=None, name=None, ignored_features=None, train_dir=None, custom_metric=None, eval_metric=None, bagging_temperature=None, save_snapshot=None, snapshot_file=None, snapshot_interval=None, fold_len_multiplier=None, used_ram_limit=None, gpu_ram_part=None, pinned_memory_size=None, allow_writing_files=None, final_ctr_computation_mode=None, approx_on_full_history=None, boosting_type=None, simple_ctr=None, combinations_ctr=None, per_feature_ctr=None, ctr_description=None, ctr_target_border_count=None, task_type=None, device_config=None, devices=None, bootstrap_type=None, subsample=None, mvs_reg=None, sampling_frequency=None, sampling_unit=None, dev_score_calc_obj_block_size=None, dev_efb_max_buckets=None, sparse_features_conflict_fraction=None, max_depth=None, n_estimators=None, num_boost_round=None, num_trees=None, colsample_bylevel=None, random_state=None, reg_lambda=None, objective=None, eta=None, max_bin=None, gpu_cat_features_storage=None, data_partition=None, metadata=None, early_stopping_rounds=None, cat_features=None, grow_policy=None, min_data_in_leaf=None, min_child_samples=None, max_leaves=None, num_leaves=None, score_function=None, leaf_estimation_backtracking=None, ctr_history_unit=None, monotone_constraints=None, feature_weights=None, penalties_coefficient=None, first_feature_use_penalties=None, per_object_feature_penalties=None, model_shrink_rate=None, model_shrink_mode=None, langevin=None, diffusion_temperature=None, posterior_sampling=None, boost_from_average=None, text_features=None, tokenizers=None, dictionaries=None, feature_calcers=None, text_processing=None, embedding_features=None, fixed_binary_splits=None) ``` ## Purpose Implementation of [the scikit-learn estimator API](https://scikit-learn.org/stable/developers/develop.html) for CatBoost ranking. Supports model training, inference and auxiliary calculations like feature importance. ## Parameters ### metadata #### Description The key-value string pairs to store in the model's metadata storage after the training. **Default value** None ### cat\_features #### Description A one-dimensional array of categorical columns indices (specified as integers) or names (specified as strings). This array can contain both indices and names for different elements. If any features in the `cat_features` parameter are specified as names instead of indices, feature names must be provided for the training dataset. Therefore, the type of the `X` parameter in the future calls of the `fit` function must be either [catboost.Pool](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_pool) with defined feature names data or pandas.DataFrame or [polars.DataFrame](https://docs.pola.rs/api/python/stable/reference/dataframe/index.html). Note - If this parameter is not None and the training dataset passed as the value of the X parameter to the fit function of this class has the [catboost.Pool](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_pool) type, CatBoost checks the equivalence of the categorical features indices specification in this object and the one in the [catboost.Pool](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_pool) object. - If this parameter is not None, passing objects of the [catboost.FeaturesData](https://catboost.ai/docs/en/concepts/en/concepts/python-features-data__desc) type as the X parameter to the fit function of this class is prohibited. **Default value** None (all features are either considered numerical or of other types if specified precisely) See [Python package training parameters](https://catboost.ai/docs/en/concepts/en/references/training-parameters/) for the full list of parameters. Note Some parameters duplicate the ones specified for the [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_fit) method. In these cases the values specified for the [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_fit) method take precedence. ## Attributes ### tree\_count\_ Return the number of trees in the model. This number can differ from the value specified in the `--iterations` training parameter in the following cases: - The training is stopped by the [overfitting detector](https://catboost.ai/docs/en/concepts/en/concepts/overfitting-detector). - The `--use-best-model` training parameter is set to "True". ### feature\_importances\_ Return the calculated [feature importances](https://catboost.ai/docs/en/concepts/en/concepts/fstr). The output data depends on the type of the model's loss function: - Non-ranking loss functions — [PredictionValuesChange](https://catboost.ai/docs/en/concepts/en/concepts/fstr#regular-feature-importance) - Ranking loss functions — [LossFunctionChange](https://catboost.ai/docs/en/concepts/en/concepts/fstr#regular-feature-importances__lossfunctionchange) ### random\_seed\_ The random seed used for training. ### learning\_rate\_ The learning rate used for training. ### feature\_names\_ The names of features in the dataset. ### evals\_result\_ Return the values of metrics calculated during the training. ### best\_score\_ Return the best result for each metric calculated on each validation dataset. ### best\_iteration\_ Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. ## Methods ### [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_fit) Train a model. ### [predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_predict) Apply the model to the given dataset. ### [calc\_leaf\_indexes](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_calc_leaf_indexes) Returns indexes of leafs to which objects from pool are mapped by model trees. ### [calc\_feature\_statistics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_calc_feature_statistics) Calculate and plot a set of statistics for the chosen feature. ### [copy](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_copy) Copy the CatBoost object. ### [compare](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_modelcompare) Draw train and evaluation metrics in [Jupyter Notebook](https://catboost.ai/docs/en/concepts/en/features/visualization_jupyter-notebook) for two trained models. ### [eval\_metrics](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_eval-metrics) Calculate the specified metrics for the specified dataset. ### [get\_all\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_all_params) Return the values of all training parameters (including the ones that are not explicitly specified by users). ### [get\_best\_iteration](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_best_iteration) Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. ### [get\_best\_score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_best_score) Return the best result for each metric calculated on each validation dataset. ### [get\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_borders) Return the list of borders for numerical features. ### [get\_evals\_result](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_evals_result) Return the values of metrics calculated during the training. ### [get\_feature\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_feature_importance) Calculate and return the [feature importances](https://catboost.ai/docs/en/concepts/en/concepts/fstr). ### [get\_metadata](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_metadata) Return a proxy object with metadata from the model's internal key-value string storage. ### [get\_object\_importance](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_object_importance) Calculate the effect of objects from the train dataset on the optimized metric values for the objects from the input dataset: - Positive values reflect that the optimized metric increases. - Negative values reflect that the optimized metric decreases. ### [get\_param](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_param) Return the value of the given parameter if it is explicitly by the user before starting the training. If this parameter is used with the default value, this function returns None. ### [get\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_params) Return the values of training parameters that are explicitly specified by the user. If all parameters are used with their default values, this function returns an empty dict. ### [get\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_scale_and_bias) Return the scale and bias of the model. These values affect the results of applying the model, since the model prediction results are calculated as follows: āˆ‘ l e a f \_ v a l u e s ā‹… s c a l e \+ b i a s \\sum leaf\\\_values \\cdot scale + bias āˆ‘leaf\_valuesā‹…scale\+bias ### [get\_test\_eval](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_get_test_eval) Return the formula values that were calculated for the objects from the validation dataset provided for training. ### [grid\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_grid_search) A simple grid search over specified parameter values for a model. ### [is\_fitted](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_is_fitted) Check whether the model is trained. ### [load\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_load_model) Load the model from a file. ### [plot\_predictions](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_plot_predictions) Sequentially vary the value of the specified features to put them into all buckets and calculate predictions for the input objects accordingly. ### [plot\_tree](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_plot_tree) Visualize the CatBoost decision trees. ### [randomized\_search](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_randomized_search) A simple randomized search on hyperparameters. ### [save\_borders](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_save_borders) Save the model borders to a file. ### [save\_model](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_save_model) Save the model to a file. ### [score](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_score) Calculate the R2 [metric](https://catboost.ai/docs/en/concepts/en/concepts/loss-functions) for the objects in the given dataset. ### [select\_features](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_select_features) Select the best features from the dataset using the [Recursive Feature Elimination](https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.RFE.html) algorithm. ### [set\_feature\_names](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_feature_names) Set names for all features in the model. ### [set\_params](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_params) Set the training parameters. ### [set\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_set_scale_and_bias) Set the scale and bias. ### [shrink](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_shrink) Shrink the model. Only trees with indices from the range `[ntree_start, ntree_end)` are kept. ### [staged\_predict](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_staged_predict) Apply the model to the given dataset and calculate the results taking into consideration only the trees in the range \[0; i). ### Was the article helpful? Yes No Previous [staged\_predict\_proba](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostclassifier_staged_predict_proba) Next [fit](https://catboost.ai/docs/en/concepts/en/concepts/python-reference_catboostranker_fit) ![](https://mc.yandex.ru/watch/60763294)
Readable Markdown
``` class CatBoostRanker(iterations=None, learning_rate=None, depth=None, l2_leaf_reg=None, model_size_reg=None, rsm=None, loss_function='YetiRank', border_count=None, feature_border_type=None, per_float_feature_quantization=None, input_borders=None, output_borders=None, fold_permutation_block=None, od_pval=None, od_wait=None, od_type=None, nan_mode=None, counter_calc_method=None, leaf_estimation_iterations=None, leaf_estimation_method=None, thread_count=None, random_seed=None, use_best_model=None, best_model_min_trees=None, verbose=None, silent=None, logging_level=None, metric_period=None, ctr_leaf_count_limit=None, store_all_simple_ctr=None, max_ctr_complexity=None, has_time=None, allow_const_label=None, target_border=None, one_hot_max_size=None, random_strength=None, name=None, ignored_features=None, train_dir=None, custom_metric=None, eval_metric=None, bagging_temperature=None, save_snapshot=None, snapshot_file=None, snapshot_interval=None, fold_len_multiplier=None, used_ram_limit=None, gpu_ram_part=None, pinned_memory_size=None, allow_writing_files=None, final_ctr_computation_mode=None, approx_on_full_history=None, boosting_type=None, simple_ctr=None, combinations_ctr=None, per_feature_ctr=None, ctr_description=None, ctr_target_border_count=None, task_type=None, device_config=None, devices=None, bootstrap_type=None, subsample=None, mvs_reg=None, sampling_frequency=None, sampling_unit=None, dev_score_calc_obj_block_size=None, dev_efb_max_buckets=None, sparse_features_conflict_fraction=None, max_depth=None, n_estimators=None, num_boost_round=None, num_trees=None, colsample_bylevel=None, random_state=None, reg_lambda=None, objective=None, eta=None, max_bin=None, gpu_cat_features_storage=None, data_partition=None, metadata=None, early_stopping_rounds=None, cat_features=None, grow_policy=None, min_data_in_leaf=None, min_child_samples=None, max_leaves=None, num_leaves=None, score_function=None, leaf_estimation_backtracking=None, ctr_history_unit=None, monotone_constraints=None, feature_weights=None, penalties_coefficient=None, first_feature_use_penalties=None, per_object_feature_penalties=None, model_shrink_rate=None, model_shrink_mode=None, langevin=None, diffusion_temperature=None, posterior_sampling=None, boost_from_average=None, text_features=None, tokenizers=None, dictionaries=None, feature_calcers=None, text_processing=None, embedding_features=None, fixed_binary_splits=None) ``` ## Purpose Implementation of [the scikit-learn estimator API](https://scikit-learn.org/stable/developers/develop.html) for CatBoost ranking. Supports model training, inference and auxiliary calculations like feature importance. ## Parameters ### metadata #### Description The key-value string pairs to store in the model's metadata storage after the training. **Default value** None ### cat\_features #### Description A one-dimensional array of categorical columns indices (specified as integers) or names (specified as strings). This array can contain both indices and names for different elements. If any features in the `cat_features` parameter are specified as names instead of indices, feature names must be provided for the training dataset. Therefore, the type of the `X` parameter in the future calls of the `fit` function must be either [catboost.Pool](https://catboost.ai/docs/en/concepts/python-reference_pool) with defined feature names data or pandas.DataFrame or [polars.DataFrame](https://docs.pola.rs/api/python/stable/reference/dataframe/index.html). Note - If this parameter is not None and the training dataset passed as the value of the X parameter to the fit function of this class has the [catboost.Pool](https://catboost.ai/docs/en/concepts/python-reference_pool) type, CatBoost checks the equivalence of the categorical features indices specification in this object and the one in the [catboost.Pool](https://catboost.ai/docs/en/concepts/python-reference_pool) object. - If this parameter is not None, passing objects of the [catboost.FeaturesData](https://catboost.ai/docs/en/concepts/python-features-data__desc) type as the X parameter to the fit function of this class is prohibited. **Default value** None (all features are either considered numerical or of other types if specified precisely) See [Python package training parameters](https://catboost.ai/docs/en/references/training-parameters/) for the full list of parameters. Note Some parameters duplicate the ones specified for the [fit](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_fit) method. In these cases the values specified for the [fit](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_fit) method take precedence. ## Attributes ### tree\_count\_ Return the number of trees in the model. This number can differ from the value specified in the `--iterations` training parameter in the following cases: - The training is stopped by the [overfitting detector](https://catboost.ai/docs/en/concepts/overfitting-detector). - The `--use-best-model` training parameter is set to "True". ### feature\_importances\_ Return the calculated [feature importances](https://catboost.ai/docs/en/concepts/fstr). The output data depends on the type of the model's loss function: - Non-ranking loss functions — [PredictionValuesChange](https://catboost.ai/docs/en/concepts/fstr#regular-feature-importance) - Ranking loss functions — [LossFunctionChange](https://catboost.ai/docs/en/concepts/fstr#regular-feature-importances__lossfunctionchange) ### random\_seed\_ The random seed used for training. ### learning\_rate\_ The learning rate used for training. ### feature\_names\_ The names of features in the dataset. ### evals\_result\_ Return the values of metrics calculated during the training. ### best\_score\_ Return the best result for each metric calculated on each validation dataset. ### best\_iteration\_ Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. ## Methods ### [fit](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_fit) Train a model. ### [predict](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_predict) Apply the model to the given dataset. ### [calc\_leaf\_indexes](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_calc_leaf_indexes) Returns indexes of leafs to which objects from pool are mapped by model trees. ### [calc\_feature\_statistics](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_calc_feature_statistics) Calculate and plot a set of statistics for the chosen feature. ### [copy](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_copy) Copy the CatBoost object. ### [compare](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_modelcompare) Draw train and evaluation metrics in [Jupyter Notebook](https://catboost.ai/docs/en/features/visualization_jupyter-notebook) for two trained models. ### [eval\_metrics](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_eval-metrics) Calculate the specified metrics for the specified dataset. ### [get\_all\_params](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_all_params) Return the values of all training parameters (including the ones that are not explicitly specified by users). ### [get\_best\_iteration](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_best_iteration) Return the identifier of the iteration with the best result of the evaluation metric or loss function on the last validation set. ### [get\_best\_score](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_best_score) Return the best result for each metric calculated on each validation dataset. ### [get\_borders](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_borders) Return the list of borders for numerical features. ### [get\_evals\_result](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_evals_result) Return the values of metrics calculated during the training. ### [get\_feature\_importance](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_feature_importance) Calculate and return the [feature importances](https://catboost.ai/docs/en/concepts/fstr). ### [get\_metadata](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_metadata) Return a proxy object with metadata from the model's internal key-value string storage. ### [get\_object\_importance](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_object_importance) Calculate the effect of objects from the train dataset on the optimized metric values for the objects from the input dataset: - Positive values reflect that the optimized metric increases. - Negative values reflect that the optimized metric decreases. ### [get\_param](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_param) Return the value of the given parameter if it is explicitly by the user before starting the training. If this parameter is used with the default value, this function returns None. ### [get\_params](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_params) Return the values of training parameters that are explicitly specified by the user. If all parameters are used with their default values, this function returns an empty dict. ### [get\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_scale_and_bias) Return the scale and bias of the model. These values affect the results of applying the model, since the model prediction results are calculated as follows: āˆ‘ l e a f \_ v a l u e s ā‹… s c a l e \+ b i a s \\sum leaf\\\_values \\cdot scale + bias ### [get\_test\_eval](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_test_eval) Return the formula values that were calculated for the objects from the validation dataset provided for training. ### [grid\_search](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_grid_search) A simple grid search over specified parameter values for a model. ### [is\_fitted](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_is_fitted) Check whether the model is trained. ### [load\_model](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_load_model) Load the model from a file. ### [plot\_predictions](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_plot_predictions) Sequentially vary the value of the specified features to put them into all buckets and calculate predictions for the input objects accordingly. ### [plot\_tree](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_plot_tree) Visualize the CatBoost decision trees. ### [randomized\_search](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_randomized_search) A simple randomized search on hyperparameters. ### [save\_borders](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_save_borders) Save the model borders to a file. ### [save\_model](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_save_model) Save the model to a file. ### [score](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_score) Calculate the R2 [metric](https://catboost.ai/docs/en/concepts/loss-functions) for the objects in the given dataset. ### [select\_features](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_select_features) Select the best features from the dataset using the [Recursive Feature Elimination](https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.RFE.html) algorithm. ### [set\_feature\_names](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_set_feature_names) Set names for all features in the model. ### [set\_params](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_set_params) Set the training parameters. ### [set\_scale\_and\_bias](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_set_scale_and_bias) Set the scale and bias. ### [shrink](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_shrink) Shrink the model. Only trees with indices from the range `[ntree_start, ntree_end)` are kept. ### [staged\_predict](https://catboost.ai/docs/en/concepts/python-reference_catboostranker_staged_predict) Apply the model to the given dataset and calculate the results taking into consideration only the trees in the range \[0; i).
Shard169 (laksa)
Root Hash17435841955170310369
Unparsed URLai,catboost!/docs/en/concepts/python-reference_catboostranker s443