• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SMTorg / smt / 41646798016
93%

Build:
DEFAULT BRANCH: master
Ran 03 Nov 2026 02:30PM UTC
Jobs 1
Files 85
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 01:42PM UTC coverage: 91.555% (+0.05%) from 91.508%
41646798016

push

github

web-flow
Replace_PLS_mat_raw_nugget_by_MDG_Repair (#842)

## Description of Changes

This PR resolves a longstanding numerical instability and theoretical
deficiency in the categorical PLS
dimension-reduction pipeline (`cat_kernel_comps`) for mixed-integer
Gaussian process surrogates (`KPLS`).

  ### Mathematical Motivation & Background
Previously, when reducing the categorical correlation space from
$D_{\text{in}} = L(L-1)/2$ to $D_{\text{out}} =
\ell(\ell-1)/2$, the implementation applied an ad-hoc diagonal raw
nugget to the full-dimensional correlation
  matrix. This heuristic caused two critical issues:
1. **Prior Variance Distortion:** It corrupted the unit diagonal
property ($[\Theta]_{jj} > 1.0$), violating the
  standard correlation assumption and introducing variance inflation.
2. **Cholesky Failures:** It did not guarantee strict positive
definiteness ($\Theta \succ 0$), leading to
frequent numerical breakdown during hyperparameter optimization
(COBYLA/L-BFGS-B).

This PR implements the **Row-Normalized PLS (RN-PLS)** rotation operator
and the certified $\mathcal{O}(L^2)$
**Mean-Deflated Gershgorin (MDG\*)** repair procedure based on recent
formalizations (Saves, 2026, [HAL:
  hal-05835102](https://hal.science/hal-05835102)):
- **Convex Reconstruction $\mathcal{T}_{G_*}$:** Maps the latent
correlation vector to the full space via unit
$\ell_2$-normalized PLS rotation weights ($G_*$), guaranteeing
$[\mathcal{T}_{G_*}(\hat{\Theta})]_{jj} \equiv 1$.
- **Mean-Deflated Gershgorin Shift $\eta_{\text{MDG}^*}$:** Computes the
positive mean deflation $\bar{\rho}_+ =
\max(0, \text{mean}(\text{off-diagonal}))$ and determines the optimal
shift $\eta = \min(\eta_{\text{Gersh}},
\eta_{\text{MDG}})$, avoiding severe over-shrinkage on equicorrelation
matrices.
- **Shift-and-Scaling Repair:** Updates off-diagonals by $(1 +
\eta)^{-1}$ while resetting the diagonal to $1.0$,
guaranteeing strict positive definiteness without eigenvalue
decompositions or variance distort... (continued)

182 of 191 new or added lines in 2 files covered. (95.29%)

1 existing line in 1 file now uncovered.

8781 of 9591 relevant lines covered (91.55%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
91.35
1.15% smt/surrogate_models/krg_based/mixed_int_corr.py
2
90.7
0.26% smt/surrogate_models/kpls.py

Coverage Regressions

Lines Coverage ∆ File
1
95.35
-2.33% smt/applications/mfkplsk.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 41646798016.1 03 Nov 2026 02:31PM UTC 85
91.55
Source Files on build 41646798016
  • Tree
  • List 85
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4be8d41e on github
  • Prev Build on master (#40488088539)
  • Next Build on master (#41646921520)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc