This text was your classic “I’m writing a tutorial to see how much I know”, being only intelligible to the exact set of people who already know what it’s about. A lot of important ideas glossed over, eg “we don’t know log pt” then immediately using it in the loss function.
I probably sound very negative but I feel that you have some responsibility to your readers if you publish your text.