TMB eliminates manual derivations for neural network mixed-effects models by automating gradient computation and random effect integration, making these powerful models easier to implement correctly and at scale.
This paper shows how to build neural network mixed-effects models (NMMs) using Template Model Builder (TMB), a tool that automatically handles the complex math needed to fit these models.