tinkoff-ai / etna

ETNA – Time-Series Library
https://etna.tinkoff.ru
Apache License 2.0
856 stars 81 forks source link

Examine slow metrics computation #1336

Closed Mr-Geekman closed 1 year ago

Mr-Geekman commented 1 year ago

🚀 Feature Request

Currently in some backtesting pipelines the bottleneck could be a metric computation. It isn't a good situation. We should discover why is it happening.

Proposal

We should try to understand why metrics are computed very slow for a big number of segments.

The problem probably lies in per-segment metric computation. We could compute it more optimally, but our current Metric implementation isn't suited for that: it is very strict about how metric is computed using metric_fn. Probably, we could significantly improve even this kind of computation if we could iterate over segments more optimally.

Steps:

Test cases

No response

Additional context

No response