Skip to content

Instantly share code, notes, and snippets.

@mr-robot
mr-robot / ka_bnet_numpy.py
Created March 28, 2012 01:45 — forked from kohlmeier/ka_bnet_numpy.py
Bayes net example in Python with Khan Academy data
#!/usr/bin/env python
from numpy import asmatrix, asarray, ones, zeros, mean, sum, arange, prod, dot, loadtxt
from numpy.random import random, randint
import pickle
MISSING_VALUE = -1 # a constant I will use to denote missing integer values
def impute_hidden_node(E, I, theta, sample_hidden):
@mr-robot
mr-robot / about.md
Created August 11, 2011 09:16 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer