Skip to content

pysimlin: no helper to get a path score along a chain of variables #669

Closed as not planned

Description

@bpowers

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.

Pointers

Activity

  1. added
    ltm
    on Jun 2, 2026
  2. added
    enhancement
    on Oct 12, 2026
  3. 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
  4. added
    duplicate
    on Oct 12, 2026
  5. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancementltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions