Skip to content

Instantly share code, notes, and snippets.

View govg's full-sized avatar

Govind Gopakumar govg

View GitHub Profile
@govg
govg / blr.py
Created April 6, 2017 18:25
Bayesian Linear Regression in Python
import numpy as np
import matplotlib.pyplot as plt
import scipy.special as scp
import scipy.stats as scs
def poly(x, d):
kernel = np.ndarray((x.shape[0], d+1), np.float)
for i in range(d+1):
kernel[:, i] = x[:, 0]**(i)
return np.matrix(kernel)
@govg
govg / keybase.md
Created October 18, 2014 04:50
keybase.md

Keybase proof

I hereby claim:

  • I am govg on github.
  • I am govg (https://keybase.io/govg) on keybase.
  • I have a public key whose fingerprint is 54E1 4E2A 5032 2BA4 9E4A 895C 1B4D 081E F381 BFA6

To claim this, I am signing this object: