Skip to content

Commit 21492a2

Browse files
committed
docs: update "pad_sequences()" parameters in the docs
1 parent f27c5b0 commit 21492a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/templates/preprocessing/sequence.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Transform a list of `nb_samples sequences` (lists of scalars) into a 2D numpy ar
1212
- __sequences__: List of lists of int or float.
1313
- __maxlen__: None or int. Maximum sequence length, longer sequences are truncated and shorter sequences are padded with zeros at the end.
1414
- __dtype__: datatype of the numpy array returned.
15+
- __padding__: 'pre' or 'post', pad either before or after each sequence.
16+
- __truncating__: 'pre' or 'post', remove values from sequences larger than maxlen either in the beginning or in the end of the sequence
17+
- __value__: float, value to pad the sequences to the desired value.
1518

1619
---
1720

0 commit comments

Comments
 (0)