mosaicmpi.dataset.Dataset.get_approximation#
- Dataset.get_approximation(k: int | None = None, program_type: Literal['cnmf_gep_tpm', 'cnmf_gep_raw'] = 'cnmf_gep_tpm') DataFrame#
Return the approximated data by multiplying the programs and usage matrices for a given rank (k). Defaults to the highest rank available.
- Parameters:
k (int, optional) – rank, defaults to None
- Returns:
Approximation of dataset based on programs and usages
- Return type:
pd.DataFrame