Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 1st, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def sample_beta(y, X, a0, b0, w):
  2.     n = X.shape[1]
  3.     a1 = a0 + n/2.0
  4.     sum1 = 0
  5.     for i, x in enumerate(X):
  6.         sum1 += (y[i] + np.dot(w,x))**2
  7.     b1 = b0 + sum1
  8.     return gamma.rvs(a=a1, scale=1/b1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top