Skip to content

Add Incremental PCA implementation using NumPy SVD - #15798

Open
samissue-He wants to merge 1 commit into
TheAlgorithms:masterfrom
samissue-He:feat/incremental-pca
Open

samissue-He wants to merge 1 commit into
TheAlgorithms:masterfrom
samissue-He:feat/incremental-pca

Conversation

@samissue-He

Copy link
Copy Markdown

Describe your change:

Implements Incremental Principal Component Analysis (Sequential Karhunen-Loeve with exact mean-shift correction via np.linalg.svd) in machine_learning/incremental_pca.py, including partial_fit, mini-batch fit, transform, inverse_transform, full type annotations, and doctests on every class, method, and helper.

  • Add an algorithm?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.

@algorithms-keeper algorithms-keeper Bot added the awaiting reviews This PR is ready to be reviewed label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant