Skip to main content

StressPy: Geometric Stress Criterion (GSC)

stresspy is a reference Python implementation of the deterministic numerical core of the Geometric Stress Criterion (GSC). It decomposes model–data discrepancies into components that are locally accessible (tangent) and inaccessible (normal) through parameter variation.


1. Mathematical Background

At a specified parameter point $\hat{\theta}$, let $r = y - f(\hat{\theta})$ be the model–data discrepancy and $J = \left.\frac{\partial f}{\partial x}\right\vert{}_{\hat{\theta}}$ be the Jacobian with respect to parameter coordinates $x$.

After applying an observation-space whitening transformation $L$: $$r_W = Lr, \qquad J_W = LJ$$

If $U_r$ contains the retained left singular vectors of $J_W$, the orthogonal components are: $$r_{\parallel,W} = U_r U_r^\top r_W, \qquad r_{\perp,W} = r_W - r_{\parallel,W}$$

The reported stresses and normal fraction are: $$S_{\mathrm{total}} = \Vert{}r_W\Vert{}2^2, \quad S{\parallel} = \Vert{}r_{\parallel,W}\Vert{}2^2, \quad S{\perp} = \Vert{}r_{\perp,W}\Vert{}2^2, \quad F{\perp} = \frac{S_{\perp}}{S_{\mathrm{total}}}$$

The minimum-norm local repair vector $\Delta x$ satisfies: $$\Delta x = V_r \Sigma_r^{-1} U_r^\top r_W$$

Under the local linear approximation, $r - J \Delta x = r_\perp$.


2. Installation

pip install stresspy

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stresspy-0.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stresspy-0.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file stresspy-0.0.1.tar.gz.

File metadata

  • Download URL: stresspy-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for stresspy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d03ea5823d0d0849dc139c5a55bd7e62c7757f28f0da8f395966c0fc8e1576b8
MD5 4ca75ddbd7bd705be4a12fb134966300
BLAKE2b-256 d6c4fc8a794948a1a65d385e7550ee3b533a73eecc8e9e8e30a71c8455ee6060

See more details on using hashes here.

File details

Details for the file stresspy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: stresspy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for stresspy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8088fa52d0603d84a3d80d37e94ae3645ce86bfe9d4195f7d33a133e607b65bd
MD5 1ea297b3f8028952dba7fd764e2de4d1
BLAKE2b-256 93b8a170a073fed72a03d117d2902714d45d858f135d3fb9e1de7d5dffa8e39e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page