morpheus.utils.type_aliases#

Type aliases used throughout the codebase.

Module Attributes

DataFrameModule

Valid DataFrame modules.

DataFrameType

Alias for pandas and cuDF DataFrame types.

SeriesType

Alias for pandas and cuDF Series types.

NDArrayType

Alias for NumPy and CuPy ndarray types.

TensorMapType

Alias for a dictionary of tensor names to tensors represented as either a NumPy or CuPy ndarray.

DataFrameModule#

Valid DataFrame modules.

alias of Literal[‘cudf’, ‘pandas’]

DataFrameType#

Alias for pandas and cuDF DataFrame types.

alias of pandas.DataFrame | cudf.DataFrame

NDArrayType#

Alias for NumPy and CuPy ndarray types.

alias of numpy.ndarray | cupy.ndarray

SeriesType#

Alias for pandas and cuDF Series types.

alias of pandas.Series | cudf.Series

TensorMapType#

Alias for a dictionary of tensor names to tensors represented as either a NumPy or CuPy ndarray.

alias of Dict[str, numpy.ndarray | cupy.ndarray]