OutputML

class aixd.data.OutputML(name: str = 'outputML', transformation: DataBlockTransformation | None = None, **kwargs)[source]

Bases: TransformableDataBlock

A special data block used for the output of the ML model.

Parameters:
  • name (str, optional) – The name of the data block.

  • normalization_class (DataBlockTransformation, optional) – The per data block normalization.

  • kwargs – Arguments passed to super().__init__(…).

Inherited Methods

check_data_consistency

Checks the data consistency.

get_cols_dobjs

In this case, the attributes can be either names of dimensions, or names of full data objects, and we need to return the precise column names that correspond to the attributes.

get_data_mat

Returns the data belonging to the requested DataObject's, as a single data matrix.

get_data_mat_dtypes

Returns the data types of the columns of the data matrix for the requested DataObject's.

get_data_mats

Returns the data belonging to the requested DataObject's, as a list of data matrices.

get_dobj_dimensions

Returns the dimensions of the data objects.

get_dobjs

Returns the data objects.

info_dobj

Returns information of all the DataObject's of the DataBlock.

inverse_transform

Inverse transforms the data matrix.

print_objects

Prints the names of the DataObject's.

print_transf

Prints the applied transformations for the DataBlock.

read

Internal function for saving.

to_data_block

Converts a transformable data block to back to an ordinary data block.

transform

Transforms the data matrix.

transformation_is_fitted

Returns True if the normalization is fitted.

update_obj

Updates the DataObject instance according to the passed data (e.g., changing its domain or type)

update_position_indices

Updates the position and position_index attributes of the DataObject's.

write

Internal function for writing.