def beta_from_design(design, min_var=1e-06, max_var=1000000.0):
 return (1.0 / np.clip(design.var(axis=0), min_var, max_var))

def beta_from_design ( design , min_var = 1e-06 , max_var = 1000000.0 ) : return ( 1.0 / np . clip ( design . var ( axis = 0 ) , min_var , max_var ) )
returns the marginal precision of a design matrix .