Skip to content

dMod2 0.18.0 - #39

Merged
simonbeyer1 merged 1 commit into
masterfrom
release-0.18.0
Nov 27, 2026
Merged

simonbeyer1 merged 1 commit into
masterfrom
release-0.18.0

Conversation

@simonbeyer1

Copy link
Copy Markdown
Member

dMod2 0.18.0, requires symident >= 0.18.2 (on PyPI).

Spike and slab: phases and hyperpriors

  • em() and msem() fit spike-and-slab random effects of a given mean or spike in phases, control$sparseFit$phases = "meanfield", "ec", "exact", each from the estimates and inner modes of the phase before; "exact" beyond termBudget is skipped after "ec". control$sparseFit$burnin first fits the fixed effects with a start subset in the slab. The fit reports phases and burnin.
  • spikeSlab(prob = betaPrior(a, b)) integrates prob out with the beta-binomial weight over the groups of a block, in the exact sum, mean field, EC, SAEM and the quadrature. tau = halfCauchyPrior(), halfNormalPrior() or invGammaPrior() estimates tau as the posterior mode, with integrate = TRUE integrated over log tau in the phase "exact". fit$slab and fit$hyperprior report them.
  • The EC approximation takes the expected Hessian of the data term and converges with an error model of the prediction.
  • Renamed without deprecation: control$sparseFit$budget to termBudget; maxEcm, epsEcm, maxEcmPerStage of control$quadrature to maxECM, epsECM, maxECMPerStage.
  • Methods article "Sparsity priors" with a section Hyperpriors; guide "Sparse deviations" with betaPrior(1, 1).

Steady states (AlyssaPetit 1.5)

  • steadyStates(zeroLoops = TRUE) sets to zero the largest set of states that are only produced through one another, a feedback loop that is off. A state of a conserved quantity left without a positive unknown is solved in a further round; an unknown without an equation is not tried again within a run of the greedy search.

Profiles

  • profile() with the default method = "integrate" corrects every step by a short fit of the other parameters with trust() (algoControl$reoptimize = TRUE), so the path no longer drifts from the constrained optimum with a Gauss-Newton Hessian; reoptimize = FALSE restores the integration alone.

Transformations

  • repar() is no longer exported; transformations are built with define(), insert() and branch(), and the docs use them throughout. define() and insert() check the argument order themselves: with the substitution in place of the transformation they stopped with "'length = 2' in coercion to 'logical(1)'" before.

Parallel runs

  • The PSOCK clusters of mstrust(), profile(), msem() and of the compilation on Windows open on a port drawn from the process id and the clock and skip a port in use: jobs with the same seed on one node no longer fail with "port ... cannot be opened", and .Random.seed stays as it is.

Documentation

  • The methods articles write the objective as \ell instead of \mathcal{J}; the methods articles and Get started define their terms in the text where they first matter, without term tables; a new page Index (Methods menu) lists every defined term with a link to that place. dev/build-index.R generates it from the anchors [term]{#def-...} and runs with dev/build-site.R. The guides link terms to these definitions.

symident 0.18.2

  • symmetryDetection() and symmetryReduction() require symident >= 0.18.2: under equilibrate the Lie order certificate ranks continued conditions at resting points drawn forward, and reconstruction and checks take curve samples where a direct solve of the resting balances needs msolve past short work limits. reconstControl(gapOrderCap = ) documents the order doubling of curve samples.

The stored Oppelt results reduction.rds and symmetries.rds are updated.

Tests: the whole suite against the installed package with symident 0.18.2, 5452 expectations passed, none skipped or failed. Two tests follow the new profile default: the drift of a Gauss-Newton path is checked with reoptimize = FALSE, and a profile fixture takes fixed, as profile() passes it to the refits.

See NEWS.md.

… betaPrior(), halfCauchyPrior(), halfNormalPrior() and invGammaPrior(), the EC approximation with the expected Hessian; steadyStates(zeroLoops = ) with AlyssaPetit 1.5; profile() refits every integration step by default; repar() internal, define() and insert() check the argument order; PSOCK ports from process id and clock; distributedComputing() saves the workspace uncompressed where zstd fails and shows the output of the first failed task; the methods articles define their terms in the text with an index page, the objective written as ell; symident >= 0.18.2; dMod2 0.18.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonbeyer1
simonbeyer1 merged commit a4d9290 into master Nov 27, 2026
@simonbeyer1
simonbeyer1 deleted the release-0.18.0 branch November 27, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant