TransformableDataBlock.to_data_block

TransformableDataBlock.to_data_block(data: ndarray | None = None, flag_transf: bool = False) DataBlock[source]

Converts a transformable data block to back to an ordinary data block. A flag controls if the transformed data objects or the original data objects are used.

Parameters:
  • data (np.ndarray, optional, default=None) – The data matrix to populate the data block with. If provided, the data block is populated with the data.

  • flag_transf (bool, optional, default=False) – If set, the transformed data objects are used for the conversion, otherwise the original data objects are used.