You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pysimlin: no helper to get a path score along a chain of variables #669
There is no way to ask for the score of a causal path (the product of link scores along a -> b -> c, the LTM reference's PATHSCORE, section 10) at query time.
Users must multiply link-score series themselves, and for arrayed models they have to guess the internal names of per-element link-score variables, which is not workable.
Example
A C-LEARN user wanting the path score of a three-variable chain had to reconstruct names like $⁚ltm⁚link_score⁚x[elem]→y by hand to find each edge's series.
Why it matters
Path scores are useful for comparing a hypothesized causal chain across scenarios.
For scalar models, Sim.get_links() already returns each link's score series, so a path score is a short product the user can write.
The hard part is arrayed models, and that is #665: get_links reports only the first element's link score.
Fix
Fix #665 first.
After that, a small pysimlin helper (for example Sim.get_path_score(["a", "b", "c"], element=...)) that multiplies the per-element link scores from get_links is a few lines and needs no new FFI.
#484 is a different feature: a PATHSCORE builtin written in model equations.
changed the title [-]ltm: no query-time PATHSCORE helper (multiply link scores along a named path, element-aware)[/-][+]pysimlin: no helper to get a path score along a chain of variables[/+]on Oct 12, 2026
For scalar models get_links already gives the series to multiply; the hard part is per-element link scores, which is #665, after which the helper is a few lines.
Activity
notebooks: rebuild the C-LEARN LTM experience notebook from scratch
[-]ltm: no query-time PATHSCORE helper (multiply link scores along a named path, element-aware)[/-][+]pysimlin: no helper to get a path score along a chain of variables[/+]bpowers commentedon Oct 12, 2026
Closing as a duplicate of #665.
For scalar models get_links already gives the series to multiply; the hard part is per-element link scores, which is #665, after which the helper is a few lines.