Repository navigation
Shared module series in simulate_hierarchy; subject weights per feature for wisfc - #156
Merged
Merged
Conversation
…ule series The module series f (one per module) is drawn once for all subjects; z stays private. truth["factors"] holds each subject's series. The default output is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL
wisfc(subject_weights=W) accepts W of shape (subjects, subjects, features): the weight of each subject in each subject's reference at each feature, in wisfc, the streamed summaries and causal mode. A feature of a subject without reference keeps the one defined orientation of its entries; its diagonal entry and its entries with other such features are 0, with one warning. tc.distinct_subject_weights(labels) builds the weights that leave out subjects holding one of a subject's own series. Also: docstrings of wcorr, isfc, wisfc and autofc no longer say that causal rows are unchanged "to 1e-9" (bit for bit since 0.4.0); new section in the subjects tutorial; API page, changelog and CLAUDE.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
tc.simulate_hierarchy(..., factors="shared"): one set of module seriesffor every subject (the noisezstays private);truth["factors"]holds each subject's series. The default output is unchanged (pinned by the stored values oftest_private_signs_are_the_previous_output).tc.wisfc(subject_weights=W)acceptsWof shape (subjects, subjects, features): the weight of each subject in each subject's reference at each feature. It works throughfunctools.partial(tc.wisfc, subject_weights=W)intc.timecorrandtc.features, in the streamed summaries and withcausal=True. Matrix weights are unchanged.tc.distinct_subject_weights(labels): the weights that leave out of each subject's reference the subjects holding one of its own series, so no series is correlated with a mean that contains it.UserWarningcounts the (subject, feature) pairs.wcorr,isfc,wisfcandautofcno longer say that causal rows are unchanged "to 1e-9" (bit for bit since 0.4.0). No change in behavior.Checks run locally
pytest -m "not slow": 3656 passed.pytest --doctest-modules timecorr/: 78 passed.-W --keep-going: no warnings.docs/tutorial/subjects.ipynbexecuted with the new section: mean correlation of a repeated series with its reference 0.59 withisfc, 0.00 with the distinct-subject weights.slowjob runs them.No version change; this is for a later release.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DcKtyroRyyp5UK7L9zwqxL