numpy
computations¶dat = readRDS('/home/gaow/Documents/GTExV8/Thyroid.Lung.FMO2.filled.rds')
attach(dat)
%get X Y --from R
Y = Y.as_matrix()
from libgaow.regression_data import MASH
import numpy as np
model = MASH(X=X,Y=Y)
model.set_prior({'identity': np.identity(2),
'single_1': np.array([[1,0],[0,0]]),
'single_2': np.array([[0,0], [0,1]]),
'all_in': np.ones((2,2))},
[0.5,1],
[0.9,0.01,0.01,0.01,0.01,0.01,0.01,0.02,0.02])
from time import time
t0 = time()
model.fit()
t1 = time()
t1 - t0
model.post_mean_mat