get_type

get_type(X)[source]

Get the string identifier associated with different data structures.

Parameters:
Xcollection

See aeon.utils.COLLECTIONS_DATA_TYPES for details.

Returns:
input_typestring

One of COLLECTIONS_DATA_TYPES.

Raises:
ValueError

X pd.ndarray but wrong dimension X is list but not of np.ndarray or p.DataFrame. X is a pd.DataFrame of non float primitives.

Examples

>>> from aeon.utils.validation import get_type
>>> get_type( np.zeros(shape=(10, 3, 20)))
'numpy3D'