Skip to content

Instantly share code, notes, and snippets.

View tkwa's full-sized avatar

Thomas Kwa tkwa

  • California
View GitHub Profile
@tkwa
tkwa / goodhart_kl_graph.py
Created April 1, 2024 22:40
Catastrophic Goodhart graph code
# %%
import numpy as np
from scipy.stats import t
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from einops import reduce, rearrange, repeat, einsum
from matplotlib.gridspec import GridSpec
# Generate data
@tkwa
tkwa / A Guide to Code Golf in TI-BASIC.md
Last active July 22, 2019 18:40
A Guide to Code Golf in TI-BASIC

A Guide to Code Golf in TI-BASIC

This document uses the following conventions:

  • M, N: Integers
  • X, Y: Real numbers
  • Z: Complex numbers
  • L1: A real or complex list

Tokens