def beta_from_design(design, min_var=1e-6, max_var=1e6):
    return 1. / np.clip(design.var(axis=0), min_var, max_var)
Returns the marginal precision of a design matrix.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/beta_from_design