Skip to content

Vectorize rCIP pair evaluation - #125

Merged
AP6YC merged 1 commit into
developfrom
vectorize-rcip
Sep 30, 2026
Merged

AP6YC merged 1 commit into
developfrom
vectorize-rcip

Conversation

@NiklasMelton

@NiklasMelton NiklasMelton commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • reuse the shared batch grouping instead of rescanning labels
  • evaluate information-potential rows with array operations
  • calculate covariance pairs in bounded vectorized chunks
  • preserve the existing inverse, determinant, regularization, and score definitions

Performance

Five alternating trials; median trial-average time; complete construction and computation included; OPENBLAS_NUM_THREADS=1.

Workload Batch parent → PR Batch speedup Stream parent → PR Stream speedup
10k / 2D / 10 clusters 6.747 → 0.608 ms 11.10x 821.811 → 208.769 ms 3.94x
4096 / 8D / 128 clusters 97.117 → 13.314 ms 7.29x 4308.759 → 733.668 ms 5.87x

scikit-learn has no corresponding rCIP implementation.

Validation

  • 832 passed, 140 optional-JAX skips
  • batch and streaming information-potential matrices match an independent scalar definition
  • remove, merge, split, and batch-to-stream operation tests pass

Issue

Closes #134

@AP6YC AP6YC self-assigned this Sep 30, 2026
@AP6YC AP6YC added the enhancement New feature or request label Sep 30, 2026
Comment thread src/cvi/modules/rCIP.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eimsums are the best! Good add.

@AP6YC
AP6YC merged commit 460e534 into develop Sep 30, 2026
7 checks passed
@AP6YC
AP6YC deleted the vectorize-rcip branch September 30, 2026 19:04
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.

Vectorize rCIP pair evaluation

2 participants