mindsdb / lightwood

Lightwood is Legos for Machine Learning.
GNU General Public License v3.0
450 stars 94 forks source link

[ENH] Improve `transform_timeseries` #1164

Closed StpMax closed 1 year ago

StpMax commented 1 year ago

Apply .astype to part of array is much slower, then to full array. This little change fix it. Depend on count of groups, speedup of model learn in % is about:

+------+-------+------+
|  50  |  100  | 500  |
+------+-------+------+
| 53.8 | 7.77  | 4.88 |
+------+-------+------+