Notes

Optimiser Paradigms in Machine Learning

Every optimiser below refines the plain update \(w \leftarrow w - \alpha \nabla L(w)\), whose basics are worked on least squares on the linear regression page (line search and Newton are on optimisation). This page adds momentum and per-parameter step sizes.

deep learning pipeline

Recall that a Neural Network follows the following construction:

  1. Pass data (forward) through model to get predicted values
  2. Calculate loss with predicted values against labels
  3. Perform backpropagation w.r.t each weight / bias to get the direction in which to move that weight such that it moves closer to the global minima
  4. Update parameters with gradients using an optimiser.

momentum

ball’s pace slows down this makes total fkn sense! if the gradient signs are the same, increasing your confidence in that direction and move further. you want to take less steps over all

Read more >

Git

git checkout

is not deprecated, but since Git 2.23 its two jobs are split into git switch (change branches) and git restore (restore files), which are clearer to use.

git checkout --<file> will discard working tree changes.

recall that your working-tree is working-directory. similarly there is a staging area and a place to commit things.

finally, there is also the upstream repository that contains a copy of the code should shit go to fuck.

Read more >

Bazaar: Notes

Typeset study bundles — LaTeX-set PDFs of my own summaries — sold at bazaar.abaj.ai/notes. The gate for this stall is the strictest in the bazaar: only 100%-own-authorship summaries, no lecturer material, course branding stripped. Free counterparts live across the site’s typeset-PDF wiki pages; the paid bundles are the ones polished into standalone books.

STAT 571 — Probability & Measure

My course notes from the University of Alberta’s graduate probability-and-measure course: a ~50-page arc from sigma-fields to the ergodic theorem — Carathéodory extension, the convergence theorems, Fubini–Tonelli, L^p, Borel–Cantelli, LLN, CLT — thirteen lectures compressed to revision speed. I write my own notes for every course I take; these ship with the custom LaTeX preamble (Baskervaldx + newtxmath, the theorem environments) so yours can look this good too. Live → /p/measure-theory-notes

Read more >

Design Patterns

Notes on all 23 Gang of Four design patterns — creational, structural and behavioural — each with its UML structure, when to use it, a worked example and its relations to the other patterns. Based on Shvets' Dive into Design Patterns.

Elisp Notes

I remember when using Emacs itself was a huge struggle for me. But now I have just sudo apt install emacs’d this vanilla install and I am already off to the races.

Anyways, I’ll probably slim down this prose at a later date when I find it cringe and too verbose; but for now I am having a terrific time thwacking away at a Drunkdeer A75 Pro (thanks Aarav).

I’ve opted to scribble here as opposed to in a README this time.

Read more >

Magit

It feels a little weird presenting my notes to the world.

Alas, emacs has begun to consume me.

C-x g is magit-status

sections

Repository Status

top of window:

Head:     main enh: week49, day1 tutorial, 5 problems
Merge:    origin/main enh: week49, day1 tutorial, 5 problems

Head: current local branch Merge / Rebase: depends what has been done thus far.

also gives info on tags and the number of commits between that and HEAD

Read more >

Memory

Honestly, the diagrams that I wish to reproduce already exist here. Currently this page is in construction and probably will be until I finish my Doctorate.

“Memory is the mother of all wisdom." — Aeschylus

Babbage’s Big Brain

Memory as a Hierarchy — Not a Monolith

Hierarchy exists for two intertwined reasons:

  1. Physics – Smaller structures are faster and nearer to ALUs but hold less data; larger structures store more but are farther away and thus slower.
  2. Economics – Fast memory costs disproportionately more per byte.

An efficient system arranges multiple layers so that > the majority of accesses hit the small, fast part, > while the bulk of bytes reside in the large, cheap part.

Read more >