dataeval.utils.arrays¶
Utility functions for array conversion and manipulation across different frameworks.
Functions¶
|
Converts an ArrayLike to Numpy array without copying (if possible). |
Validates the embeddings array and converts it to the specified type. |
|
Flattens input array from (N, ...) to (N, -1) where all samples N have all data in their last dimension. |
|
|
Converts an ArrayLike to Numpy array without copying (if possible), returns None if input is None. |
|
Converts an ArrayLike to Numpy array, returns None if input is None. |
Rescale an array to the range [0, 1]. |
|
|
Converts an ArrayLike to new Numpy array. |