Skip to content

Instantly share code, notes, and snippets.

View willkurt's full-sized avatar

Will Kurt willkurt

View GitHub Profile
# NOTE: This is gross, but it contains the plotting code to build this:
# https://twitter.com/willkurt/status/1351242237963874311
# ImageMagick does all the gif work: convert *.png -delay 60 -duplicate 20,22 logistic.gif
# This optimization loop is not idea for any other purpose than snapshotting the learning
lr = 0.000005
init_nll = nll(y_train,X_train,w)
next_nll = 0
img_ctr = 0
iters = 10
while (init_nll - next_nll) > 10:
@willkurt
willkurt / ai_generate.py
Last active November 24, 2025 00:16
AI Training Data Generator
#!/usr/bin/env python3
"""
Training Data Harvester
Generates training data by using an LLM to prompt DALL-E 3 to create images
Before running make sure to install the necessary pip packages by running:
`pip install openai requests pydantic`
You will also need to set your OPENAI_API_KEY environmental variable