Evaluation of devresid from an updated eta in GLMMs

Open
#377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
performance

Research direction

Start by tracing the basic evaluation loop in the glm and glmm paths, focusing on the GLMresp struct and its parallel vectors. Compare the proposed RowTable layout and investigate whether LoopVectorization’s @avx macro is applicable; completion would require a justified implementation and performance evaluation, since the issue leaves the scope exploratory.

Written by the indexing model from the issue text.

Description

In the "something to think about for the future" category, it seems to me that the basic loop in glm and glmm evaluations, eta -> mu -> varfunc -> mueta -> devresid could more effectively be written using a RowTable instead of the current GLMresp struct that has several parallel vectors. The evaluation is essentially row-wise and it would help to have the row elements adjacent in memory instead of in separate vectors. While doing so it might help to look at whether the LoopVectorization::@avx macro could aid here. I don't think that going all the way to using Tullio.jl is warranted here but it may be worth exploring.

Dominant language
Julia
Stars
455
Forks
51
Avg merge
3d 15h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaStats/MixedModels.jl

All issues in JuliaStats/MixedModels.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.