get_all_params -> init_params
@@ -4470,7 +4470,10 @@ class CatBoostRegressor(CatBoost):
"""
if prediction_type is None:
prediction_type = 'RawFormulaVal'
- params = self.get_all_params()
+ # TODO(ilyzhin) change on get_all_params after MLTOOLS-4758
+ params = deepcopy(self._init_params)
+ _process_synonyms(params)
+ if 'loss_function' in params:
if params['loss_function'] in ('Poisson', 'Tweedie'):
prediction_type = 'Exponent'
return self._predict(data, prediction_type, ntree_start, ntree_end, thread_count, verbose, 'predict')
