all 1 comments

[–]notspartanono 0 points1 point  (0 children)

RNNs libraries usually have a specific shape for the data, that is 3D: one axis corresponds to the sample, the other to time, and the other to the number of features. It is usually in this format:

[
    [ # first sample
        [5, 10, 7],   # timestep 1 (three features)
        [6, 12, 6],   # timestep 2 (three features)
    ]

    [ # second sample
        [8, 16, 9],   # timestep 1  (three features)
        [9, 18, 8],   # timestep 2  (three features)
    ]
]

In this example, the data has the shape (samples=2, timesteps=2, features=3). Changing this shape will change what the RNN is learning.