Aarhus-Psychiatry-Research / timeseriesflattener

Converting irregularly spaced time series, such as eletronic health records, into dataframes for tabular classification.
https://Aarhus-Psychiatry-Research.github.io/timeseriesflattener
MIT License
18 stars 2 forks source link

chore: simplify main #585

Closed MartinBernstorff closed 2 months ago

MartinBernstorff commented 2 months ago
codspeed-hq[bot] commented 2 months ago

CodSpeed Performance Report

Merging #585 will improve performances by 13.34%

Comparing mbern_simplify_main (eab8961) with main (7377287)

Summary

⚡ 7 improvements

Benchmarks breakdown

Benchmark main mbern_simplify_main Change
test_bench[aggregations=['max', 'mean']] 99.1 ms 51.3 ms +93.04%
test_bench[n_features=2.0x] 142.3 ms 94.1 ms +51.29%
test_bench[n_lookbehinds=2.0x] 142.4 ms 93.1 ms +52.9%
test_bench[n_lookbehinds=4.0x] 229.4 ms 180.5 ms +27.11%
test_bench[n_lookbehinds=8.0x] 402.1 ms 354.8 ms +13.34%
test_bench[n_pred_times=2.0x] 190.4 ms 95.3 ms +99.84%
test_bench[x] 99.1 ms 51.4 ms +92.76%