utils.helper

This contains all helper functions for experiments and visualizations.

Functions

Eval_Imputation

Calculates the median L1 distance between the original dataset and the imputed values for corrupted entries only.

HC

Given a latent space for the CORTEX data set and labels, the function will perform hierarchical clustering (HC) on the latent space and calculate the NMI score.

corrupting

Adopted from the "Deep Generative modeling for transcriptomics data".

entropy

Calculates the entropy.

entropy_batch_mixing

Adopted from:

kmeans

Performs K-means on the data.

measure_q

This function will measure the quality of clustering using NMI, ARI, and ASW.

plot_line

A simple function to graph the plot lines with customized options.

plot_tSNE

Adoptd from: