tslearn icon indicating copy to clipboard operation
tslearn copied to clipboard

Difference in results between tslearn and DBA.py implementation

Open filehelp opened this issue 2 years ago • 1 comments

I've been trying to use the average DBA function provided by tslearn to compute the average of a set of time series. However, I've noticed that the results obtained with tslearn's implementation and with the original DBA.py module by Francois Petitjean (https://github.com/fpetitjean/DBA/blob/master/DBA.py) seem to differ. I've attached graphs that illustrate the discrepancies. I've used the exact same data for both implementations.

I'm unsure whether this is due to a bug in the tslearn code or if I might have missed some modification that's required for the tslearn implementation. Could someone help me investigate this issue, please? Thank you. image

filehelp avatar Mar 26 '23 16:03 filehelp

Would you mind sharing some code and data? It would be useful to investigate your problem.

Also, note that the tslearn.barycenters package provides a dtw_barycenter_averaging_petitjean implementation.

charavelg avatar Aug 29 '25 12:08 charavelg