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

SMTorg / smt / 43242863578
93%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2026 03:33PM 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

12 Nov 2026 02:58PM UTC coverage: 92.102% (+0.5%) from 91.567%
43242863578

push

github

web-flow
Extension of KRG block update to mixed and hierarchical design spaces + bug fix in design_space.py (#855)

This pull request extends the fast Cholesky block update method
`KRG.update_model(X_new, Y_new, is_acting=None)` beyond continuous
spaces to support **mixed-integer variables** (continuous, integer,
ordinal, categorical) and **hierarchical design spaces** (conditionally
acting/decreed variables governed by categorical or continuous
meta-variables).

All changes to the surrogate model are strictly isolated to
`smt/surrogate_models/krg.py`, leaving base classes (`krg_based.py`)
untouched. It also fixes a bug in `DesignSpace.declare_decreed_var` and
resolves inactive variable imputation during incremental updates.

---

## 1. Executive Summary

1. **Mixed-Integer & Hierarchical block updates**:
* Supports all **6 categorical kernels**: Continuous Relaxation
(`CONT_RELAX`), Gower distance (`GOWER`), Distributional Encoding
(`DIST_ENCODING`), Homoscedastic Hypersphere (`HOMO_HSPHERE`),
Exponential Hypersphere (`EXP_HOMO_HSPHERE`), and Compound Symmetry
(`COMPOUND_SYMMETRY`).
* Supports both **hierarchical kernels**: Algebraic (`ALG_KERNEL`) and
Arc-kernel (`ARC_KERNEL`).


2. **Bug fix**:
**String Splitting in `declare_decreed_var`**: Fixed
`DesignSpace.declare_decreed_var` where string conditions were
erroneously treated as general sequences due to Python's
`isinstance(..., Sequence)` semantics.


3. **Explicit Model Status & Capability Inspection Properties**:
* Added public and internal properties in KRG class:
`supports_block_update`, `is_block_updatable`, `is_trained`,
`is_continuous`, `is_hierarchical`, and `is_hierarchical_continuous`.
* Replaced fragile `hasattr` checks with explicit state inspections that
report precise incompatibility reasons (e.g. heteroscedastic noise,
reinterpolation `is_ri`, or incompatible GP subclasses like SGP).



---

## 2. Architecture & Workflow

```text
                                KRG.update_model(X, Y, is_ac... (continued)

218 of 221 new or added lines in 2 files covered. (98.64%)

8979 of 9749 relevant lines covered (92.1%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.87
4.18% smt/surrogate_models/krg.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 43242863578.1 12 Nov 2026 03:33PM UTC 85
92.1
Source Files on build 43242863578
  • Tree
  • List 85
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5f6d21ac on github
  • Prev Build on master (#43230585075)
  • Next Build on master (#43302113856)
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