03c1f77c0808cb647c636a2e03b4378e47221db1,GPy/examples/oil_flow_demo.py,,,#,23

Before Change



Y = data["DataTrn"]
N, D = Y.shape
selected = np.random.permutation(N)//[:200]
labels = data["DataTrnLbls"][selected]
Y = Y[selected]
N, D = Y.shape
Y -= Y.mean(axis=0)
//Y /= Y.std(axis=0)

Q = 10
k = GPy.kern.rbf_ARD(Q) + GPy.kern.white(Q)
m = GPy.models.Bayesian_GPLVM(Y, Q, kernel = k, M = 12)
m.constrain_positive("(rbf|bias|S|white|noise)")
// m.constrain_bounded("white", 1e-6, 100.0)
// m.constrain_bounded("noise", 1e-4, 1000.0)

After Change



Y = data["DataTrn"]
N, D = Y.shape
selected = np.random.permutation(N)[:350]
labels = data["DataTrnLbls"][selected]
Y = Y[selected]
N, D = Y.shape
Y -= Y.mean(axis=0)
// Y /= Y.std(axis=0)

Q = 5
k = GPy.kern.linear(Q, ARD = False) + GPy.kern.white(Q)
m = GPy.models.Bayesian_GPLVM(Y, Q, kernel = k, M = 20)
m.constrain_positive("(rbf|bias|S|linear|white|noise)")

// m.unconstrain("noise")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: SheffieldML/GPy
Commit Name: 03c1f77c0808cb647c636a2e03b4378e47221db1
Time: 2013-02-12
Author: nicolo.fusi@gmail.com
File Name: GPy/examples/oil_flow_demo.py
Class Name:
Method Name:


Project Name: SheffieldML/GPy
Commit Name: 936d08723eb9f84cf034330eca5f207908ace004
Time: 2013-01-29
Author: nicolo.fusi@gmail.com
File Name: GPy/examples/oil_flow_demo.py
Class Name:
Method Name:


Project Name: facebookresearch/Detectron
Commit Name: 0375b05e867eae12be0ca8c420c9efad687689bf
Time: 2018-05-25
Author: kaiminghe@fb.com
File Name: detectron/roi_data/loader.py
Class Name: RoIDataLoader
Method Name: _shuffle_roidb_inds