mirror of
https://github.com/gmihaila/ml_things.git
synced 2021-10-04 01:29:04 +03:00
Update README.md
This commit is contained in:
@@ -37,8 +37,8 @@ def pad_array(variable_length_array, fixed_length=None, axis=1)
|
||||
```
|
||||
| | |
|
||||
|----------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Parameters:** | **variable_length_array** : array<br> Single arrays [1,2,3] or nested arrays [[1,2],[3]].<br><br>**fixed_length** : int<br>Max length of rows for numpy.<br><br>**axis** : int<br>Directions along rows: 1 or columns: 0. |
|
||||
| **Returns:** | **numpy_array** : <br>axis=1: fixed numpy array shape [len of array, fixed_length]. <br>axis=0: fixed numpy array shape [fixed_length, len of array]. | |
|
||||
| **Parameters:** | **variable_length_array** : array<br> Single arrays [1,2,3] or nested arrays [[1,2],[3]].<br>**fixed_length** : int<br> Max length of rows for numpy.<br>**axis** : int<br> Directions along rows: 1 or columns: 0. |
|
||||
| **Returns:** | **numpy_array** :<br> axis=1: fixed numpy array shape [len of array, fixed_length].<br> axis=0: fixed numpy array shape [fixed_length, len of array]. | |
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user