October 2018
Intermediate to advanced
252 pages
6h 49m
English
To pad 0.0 on at the end of shorter arrays, use padding='post', as shown in the following code snippet:
padded_post = pad_sequences(sequences,padding='post')print(padded_post)
The preceding output shows how post-padding happens: