Skip to content

Instantly share code, notes, and snippets.

View ClaireBookworm's full-sized avatar
🍰
desserts backwards is stressed (or is it the other way around?)

claire wang ClaireBookworm

🍰
desserts backwards is stressed (or is it the other way around?)
View GitHub Profile
@ClaireBookworm
ClaireBookworm / 03_nash.py
Last active October 27, 2025 23:49
question 5.4 for pset 2 for class 6.s890
import re
import matplotlib.pyplot as plt
from collections import defaultdict
class GameTree:
def __init__(self):
self.nodes = {}
self.infosets = defaultdict(list)
@ClaireBookworm
ClaireBookworm / 02_uniform_opponent.py
Last active October 27, 2025 23:50
question 5.3 for pset 2 for 6.s890
import numpy as np
import matplotlib.pyplot as plt
from collections import defaultdict
class CFRSolver:
def __init__(self, tree):
self.tree = tree
self.h2i = tree.get_history_to_infoset()
# regret and strategy sums per infoset
@ClaireBookworm
ClaireBookworm / 01_best_response.py
Last active October 27, 2025 23:51
problem 5.2 for pset 2 in 6.s890
import re
from collections import defaultdict
class GameTree:
def __init__(self):
self.nodes = {}
self.infosets = defaultdict(list)
def parse_game(self, game_text: str):
for line in game_text.strip().split('\n'):

Notes from Group Meeting

US Department of Veteran Affairs x Stanford x Andover

It's important to consider more than just individual data and how they differ from the "norm" when developing certain treatment strategies. For example, the Department of Veteran Affairs will calculate the risk of certain veterans of opioid overdose or depression—by knowing these they can preemptively provide more resources or better help, but they are not the most accurate because they aren't personalized.

Types of Datasets

  • economic distress
  • US census bureau
  • social capital and connections
  • lethal means / access to firearms (FBI)
@ClaireBookworm
ClaireBookworm / style.css
Last active February 23, 2021 16:23 — forked from sporeball/style.css
scrapbook CSS
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans&display=swap');
:root {
--colors-muted:#2e75b5;
--colors-elevated:#009aab;
--colors-sunken:#4599ba;
--colors-black:#8492a6;
--colors-yellow:#a163ff;
--colors-cyan:#9650ff;
--colors-blue:#7e28ff;
function setup() {
createCanvas(400,400);
// var canvas = document.querySelector('canvas');
var context = canvas.getContext('2d');
var size = 400;
context.lineJoin = 'bevel';
var line, dot,
odd = false,
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
rectMode(CENTER);
const ctx = drawingContext;
const x = width / 2;
const y = height / 2;
const squareSideDotsCount = 30;
stroke(0);
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
rectMode(CENTER);
const ctx = drawingContext;
const x = width / 2;
const y = height / 2;
const squareSideDotsCount = 30;
const squareVertices = [];
/* */
@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');
body {
/* background-color:#1b1a1f; */
background-image: url("https://images.unsplash.com/photo-1601844569046-b72c31389677?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=752&q=80") !important;
background-repeat: no-repeat;
background-size: 100%;
background-position: fixed;