Update performance related hyperparameters in Covariance and PCA #3787
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 312 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3787"
general
weight: 0.35
Vika-F
Description
This PR updates
propose_*methods in Covariance and PCA algorithms in order to improve the performance of those algorithms on CPU.system_parametersstructure was extended to provideget_l1_cache_size(),get_l2_cache_size()andget_ll_cache_size()methods in order to define the certain hyperparameters values based on the hardware characteristics.Speedups of this branch comparing to main on GNR (Intel Xeon 6787P), 16 cores.
Measured with scikit-learn_bench
<img width="550" height="731" alt="image" src="https://github.com/user-attachments/assets/574a35cd-31c7-4afd-808f-85a2d685417f" />
Performance of the previous variant with the closed-form solution for cpu_block_size:
<img width="547" height="729" alt="image" src="https://github.com/user-attachments/assets/55a2b39e-6c33-4c38-82e1-b758e2bd171a" />
<details>
<summary>Checklist:</summary>
Completeness and readability
Testing
Performance
I am going to extend scikit-learn_bench with EmpiricalCovariance, but this was not done yet.
</details>