Skip to content

Bayesian Principal Component Analysis 2 | Imputation#142

Merged
lucas-diedrich merged 15 commits intomainfrom
bpca-impute
Jan 22, 2026
Merged

Bayesian Principal Component Analysis 2 | Imputation#142
lucas-diedrich merged 15 commits intomainfrom
bpca-impute

Conversation

@lucas-diedrich
Copy link
Copy Markdown
Collaborator

@lucas-diedrich lucas-diedrich commented Jan 2, 2026

Impute missing values with BPCA

$$ X_{reconstructed} = U \times L + \overline{X} $$

with BPCA factors (observations X factors) $U$ and BPCA loadings (factors x features) $L$.

Only missing values are replaced.

@lucas-diedrich lucas-diedrich self-assigned this Jan 2, 2026
@lucas-diedrich lucas-diedrich added the enhancement New feature or request label Jan 2, 2026
@lucas-diedrich lucas-diedrich changed the base branch from main to bpca-embedding January 2, 2026 11:20
Comment thread src/alphapepttools/pp/impute.py
Comment thread src/alphapepttools/pp/impute.py Outdated
Comment thread src/alphapepttools/pp/impute.py Outdated
Comment thread src/alphapepttools/pp/impute.py Outdated
Comment thread src/alphapepttools/pp/impute.py Outdated
Comment thread src/alphapepttools/pp/impute.py
Comment thread src/alphapepttools/pp/impute.py Outdated
Comment thread src/alphapepttools/tl/embeddings.py
Comment thread src/alphapepttools/pp/impute.py
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 88.81579% with 17 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (bpca-embedding@cf04e78). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/alphapepttools/pl/plots.py 22.22% 7 Missing ⚠️
src/alphapepttools/pp/impute.py 91.56% 7 Missing ⚠️
src/alphapepttools/tl/plot_data_handling.py 92.85% 3 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             bpca-embedding     #142   +/-   ##
=================================================
  Coverage                  ?   77.99%           
=================================================
  Files                     ?       35           
  Lines                     ?     1809           
  Branches                  ?        0           
=================================================
  Hits                      ?     1411           
  Misses                    ?      398           
  Partials                  ?        0           
Files with missing lines Coverage Δ
src/alphapepttools/pp/__init__.py 100.00% <100.00%> (ø)
src/alphapepttools/tl/__init__.py 100.00% <100.00%> (ø)
src/alphapepttools/tl/embeddings.py 89.61% <100.00%> (ø)
src/alphapepttools/tl/tools.py 92.30% <100.00%> (ø)
src/alphapepttools/tl/plot_data_handling.py 97.16% <92.85%> (ø)
src/alphapepttools/pl/plots.py 40.17% <22.22%> (ø)
src/alphapepttools/pp/impute.py 92.80% <91.56%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from bpca-embedding to main January 22, 2026 13:37
@lucas-diedrich lucas-diedrich merged commit 42bb07a into main Jan 22, 2026
5 checks passed
@lucas-diedrich lucas-diedrich deleted the bpca-impute branch January 22, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants