Skip to main content

diff_graphs

signature
Sequence[GraphSummary]
required
Graphs of the model before training.
Sequence[GraphSummary]
required
Graphs after training. With the same length as before, graphs are paired by index (same prompts). Otherwise the test is unpaired.
Settings
See the guide.
tuple[before, after]
Graphs of a run that did not learn the behaviour.
tuple[before, after]
Graphs of another seed.
Sequence[float]
Per-layer reconstruction error before training.
Sequence[float]
Per-layer reconstruction error after training.
Mapping[str, str]
Feature labels to show next to units.
object
UnitChange fields: unit, before, after, delta, present_before, present_after, status (gained | lost | up | down | stable), sign_agreement, ci_low, ci_high, p_null, q_null, control_delta, specific, replicated, label.

GraphSummary

str
required
dict[str, float]
required
"layer:feature" to influence, summed over positions.
dict[tuple[str, str], float]
(source, target) to summed edge weight.
float | None
optional

Loaders