Skip to content

PCA Implementation - AFTER V1.2 - #36

@PiMaV

Description

@PiMaV
  • Button: Add a "Calculate PCA" button to ensure the user is aware of this action.
  • Autosave: Implement autosaving of the PCA results into the images folder once calculated.
  • Metadata: Save metadata in a separate file with information such as original image size, number of images, and cropped region.
  • Filename: Save files with a specific filename format, e.g., pca_images_x_y (pca_180im_133x_190y.npy).
  • BUG Fix: Ensure the PCA is cleared when a new dataset is loaded.
  • Feature: Load the PCA from the file if it already exists in the same folder. Check the size of PCA due to cropping.
  • Viewing: Change "Show/Hide" to "Refresh View".
  • Components: Display components with three digits (currently shows two digits).
  • Dataset Size Check: Implement a check for large datasets and provide an error/warning to the user. The error from np.linalg.svd will indicate an inability to allocate sufficient memory.
    • Calculation: Show an info on the PCA Page with the formula for memory requirement: "(x * y)^2 * 8 / 1024^3" in GiB. Compare this against available and blocked RAM.
  • GPU Acceleration: Implement GPU acceleration of PCA using cupy.
  • Full Matrices: Implement an option for full_matrices = False/True.
  • Sparse SVD: Consider using scipy.sparse.linalg.svds. Check the literature or Google to determine the most appropriate method.
  • Size Estimation: Show a size estimation for the PCA in the lower taskbar. This allows the user to see the impact directly when using cropping or masking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    low prioNot handled unless necessary.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions