dial_core.datasets.datatype.datatype module

class dial_core.datasets.datatype.datatype.DataType[source]

Bases: object

Abstract class for any data type.

abstract display(data)[source]

Return the display representation of the data.

For example, for Categorical types this will be the actual category name instead of an interger.

abstract process(data)[source]

Return the data after processing given the data type.

For example, if the DataType is an ImagePath, process() will open the image and return the array corresponding to its content.