aimclub / FEDOT

Automated modeling and machine learning framework FEDOT
https://fedot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
623 stars 84 forks source link

Lagged implementation speedup #1139

Closed kasyanovse closed 11 months ago

kasyanovse commented 11 months ago

One line in code in lagged implementation spends more than 95% of lagged implementation evaluation time (in my case). Fixed it.

nicl-nno commented 11 months ago

А есть оценка насколько это ускоряет?

kasyanovse commented 11 months ago

Тесты на произвольных данных. исправленный код находится в функции prepare_target.

Старый вариант. image

Новый вариант. image

codecov[bot] commented 11 months ago

Codecov Report

Merging #1139 (9410f15) into master (8f1dcd7) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1139   +/-   ##
=======================================
  Coverage   78.53%   78.53%           
=======================================
  Files         131      131           
  Lines        9359     9360    +1     
=======================================
+ Hits         7350     7351    +1     
  Misses       2009     2009           
Files Changed Coverage Δ
...lementations/data_operations/ts_transformations.py 78.42% <100.00%> (+0.05%) :arrow_up:
nicl-nno commented 11 months ago

Здорово! Да наверное в тесте нет нужды, время сложно оценивать.