Skip to content

Add a mixed model section to the milo tutorial - #71

Merged
Zethson merged 2 commits into
mainfrom
feat/milo-glmm
Aug 6, 2026
Merged

Add a mixed model section to the milo tutorial#71
Zethson merged 2 commits into
mainfrom
feat/milo-glmm

Conversation

@Zethson

@Zethson Zethson commented Aug 6, 2026

Copy link
Copy Markdown
Member

Covers the Milo mixed model added in scverse/pertpy#1069, modelling Site as a random intercept rather than as a fixed effect.

The notebook was executed end to end against that branch, so the new cells carry their outputs and every other output is refreshed from the same run. On this dataset the mixed model fits 4307 neighbourhoods: 6 have a group without any cells and are reported as NaN, 21 of the remaining 4301 do not converge, and the site variance runs between 0.02 and 0.66.

Merge after scverse/pertpy#1069, since (1 | variable) designs do not exist on pertpy main yet.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Zethson
Zethson merged commit 8045916 into main Aug 6, 2026
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