Skip to content

Instantly share code, notes, and snippets.

View murphyk's full-sized avatar

Kevin P Murphy murphyk

View GitHub Profile
Here is the chain graph version of the "Asia" network from Cowell et al 2005 p110
# "Probabilistic Networks and Expert Systems"
# https://link.springer.com/book/10.1007/b97670
image of an integral
@murphyk
murphyk / bern-ekf
Created September 9, 2024 16:25
EKF for binary logistic regression in 2d
# Conditional Moments EKF for fitting a binary logistic regression model to 2 moons data
# Source: https://colab.research.google.com/github/gerdm/bayes/blob/main/exponential-families-ekf.ipynb
@murphyk
murphyk / gist:41a15824378143222bd29235727680d6
Created November 23, 2025 19:32
interactive TTT in Tinker
import os
os.environ["TINKER_API_KEY"] = #
import asyncio
from datetime import datetime
import chz
from tinker_cookbook import cli_utils, model_info
from tinker_cookbook.recipes.multiplayer_rl.text_arena.env import TwoPlayerTextArenaDatasetBuilder
from tinker_cookbook.rl import train
from tinker_cookbook import renderers, tokenizer_utils