Type: lib.numpy.reshaping.Reshape1D
Namespace: lib.numpy.reshaping
Description
Reshape an array to a 1D shape without changing its data. array, reshape, vector, flatten
Use cases:
- Flatten multi-dimensional data for certain algorithms
- Convert images to vector form for machine learning
- Prepare data for 1D operations
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| values | np_array |
The input array to reshape | {'type': 'np_array', 'value': None, 'dtype': '<i8', 'shape': [1]} |
| num_elements | int |
The number of elements | 0 |
Outputs
| Output | Type | Description |
|---|---|---|
| output | np_array |
Metadata
Related Nodes
Browse other nodes in the lib.numpy.reshaping namespace.