dial_core.datasets.datatype.numericarray module

class dial_core.datasets.datatype.numericarray.NumericArray[source]

Bases: dial_core.datasets.datatype.datatype.DataType

Represents an array of numeric values (unidimensional)

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.

Return type:str
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.

Return type:ndarray