Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix sequence padding documentation (#279)
Browse files Browse the repository at this point in the history
* Update sequence.py

The default parameter for padding is pre. The docs reflect the change

* Add info to docstring

* Update .travis.yml
  • Loading branch information
joshzwiebel authored Feb 18, 2020
1 parent 9a836c2 commit f80d4a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
sudo: required
dist: trusty
language: python
matrix:
include:
Expand Down
3 changes: 2 additions & 1 deletion keras_preprocessing/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def pad_sequences(sequences, maxlen=None, dtype='int32',
or the length of the longest sequence otherwise.
Sequences that are shorter than `num_timesteps`
are padded with `value` at the end.
are padded with `value` at the beginning or the end
if padding='post.
Sequences longer than `num_timesteps` are truncated
so that they fit the desired length.
Expand Down

0 comments on commit f80d4a1

Please sign in to comment.