etna icon indicating copy to clipboard operation
etna copied to clipboard

Fix catboost to work with `has_time`

Open alex-hse-repository opened this issue 2 years ago • 0 comments

🚀 Feature Request

We need to reorder the points in the dataset, which is passed to the catboost model to make it able to use has_time parameter properly.

Proposal

Sort df by the "timestamp" column in the first line of the following methods:

  • https://github.com/tinkoff-ai/etna/blob/0bb7a64e22c06d767536f58aded2126d08936f1f/etna/models/catboost.py#L38
  • https://github.com/tinkoff-ai/etna/blob/0bb7a64e22c06d767536f58aded2126d08936f1f/etna/models/catboost.py#L61

Test cases

No test cases required

Additional context

No response

alex-hse-repository avatar Jul 12 '22 13:07 alex-hse-repository