spared.plotting.plot_random_patches

spared.plotting.plot_random_patches(dataset: str, processed_adata: AnnData, path: str, patch_size: int = 224) None[source]

Plot random set of patches

This function gets 16 flat random patches (with the specified dims) from the processed adata objects. It reshapes them to a bidimensional form and shows them. The plot is saved to the specified path.

Parameters:
  • patch_size – Patch size (default 224)

  • dataset – Name of the dataset

  • processed_adata (ad.AnnData) – Processed and filtered data ready to use by the model.

  • path (str) – Path to save the image.