![Machine Learning with Swift](https://wfqqreader-1252317822.image.myqcloud.com/cover/164/36700164/b_36700164.jpg)
上QQ阅读APP看书,第一时间看更新
Smarter time series chunking
We split our time series into chunks of 25 elements length. This introduces delay when the motion type changes from one to another. This can also be fixed relatively easily by introducing sliding windows instead of chunks. With this approach, we don't need to wait for the new chunk to be delivered; we just record a frame or predict a new label every time when we get a new value from the motion sensor.