You May Also Enjoy
Cross-entropy made easy with PyTorch
9 minute read
This is a side-bar post in a series about transformers. Cross-entropy is the loss function used in transformer models.
Sequences
15 minute read
This is the first in a series of posts about transformers, based on Andrej Karpathy’s amazing video Let’s build GPT: from scratch, in code, spelled out.
Instrumental variable analysis with a binary outcome
8 minute read
Here is an additional post on instrumental variable (IV) analysis. This follows an exercise where I employed two methods of IV analysis, comparing a Bayesian...
Instrumental variable analysis with Bayesian modeling and statsmodels
10 minute read
Instrumental variable (IV) analysis is one method for causal inference. This approach relies on using an instrumental variable $Z$ to find the true relations...