0d97bc0bb3db40017f1278d6c1f292ea0f789ab0,doc/source/notebooks/advanced/mcmc.pct.py,,,#,112
Before Change
optimizer.minimize(objective, variables=model.trainable_variables)
print(f"log likelihood at optimum: {model.log_likelihood()}")
// %% [markdown]
// Thirdly, we add priors to the hyperparameters.
After Change
// %%
kernel = gpflow.kernels.Matern52(lengthscales=0.3)
meanf = gpflow.mean_functions.Linear(1.0, 0.0)
model = gpflow.models.GPR(data, kernel, meanf)
model.likelihood.variance.assign(0.01)
// %% [markdown]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GPflow/GPflow
Commit Name: 0d97bc0bb3db40017f1278d6c1f292ea0f789ab0
Time: 2020-03-27
Author: art.art.v@gmail.com
File Name: doc/source/notebooks/advanced/mcmc.pct.py
Class Name:
Method Name:
Project Name: dmlc/dgl
Commit Name: 7a50be64b75a82ee4380284b4a74496d18106b0a
Time: 2018-04-22
Author: zzhang@gmail.com
File Name: mx.py
Class Name:
Method Name:
Project Name: chainer/chainerrl
Commit Name: 71ee5a5d044a3ad12c28828f80160be182c61702
Time: 2019-04-28
Author: muupan@gmail.com
File Name: examples/mujoco/trpo/train_trpo.py
Class Name:
Method Name: main