Data Cleaning with PHP
Reshaping Data Structures with Rubix
Reshaping allows us to organize data into structures required by specific algorithms. For example, in time series analysis, data can be reshaped into rolling windows for sequence modeling.
Dataset
100,
150,
200,
250,
300,
350
Result:
Memory: 0.158 Mb
Time running: 0.003 sec.
After Reshaping:
---------------
[[100, 150, 200], [150, 200, 250], [200, 250, 300], [250, 300, 350]]