0b9e1f064ab1ce1d994f86686e7d662a46095e36,doc/source/notebooks/advanced/mcmc.pct.py,,marginal_samples,#Any#Any#Any#,198

Before Change


    fig, axarr = plt.subplots(1, len(param_to_name), figsize=(15, 3), constrained_layout=True)
    for i, param in enumerate(model.trainable_parameters):
        ax = axarr[i]
        ax.hist(np.stack(samples[i]).reshape(-1, 1), bins=20)
        ax.set_title(param_to_name[param])
    fig.suptitle(y_axis_label)
    plt.show()

After Change


def marginal_samples(samples, parameters, y_axis_label):
    fig, axes = plt.subplots(1, len(param_to_name), figsize=(15, 3), constrained_layout=True)
    for ax, val, param in zip(axes, samples, parameters):
        ax.hist(np.stack(val).flatten(), bins=20)
        ax.set_title(param_to_name[param])
    fig.suptitle(y_axis_label)
    plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 0b9e1f064ab1ce1d994f86686e7d662a46095e36
Time: 2020-03-30
Author: st--@users.noreply.github.com
File Name: doc/source/notebooks/advanced/mcmc.pct.py
Class Name:
Method Name: marginal_samples


Project Name: facebookresearch/Horizon
Commit Name: 2a548989f90026395d3d47ccf15ac331728c64bf
Time: 2019-06-22
Author: jjg@fb.com
File Name: ml/rl/test/gym/gym_evaluator.py
Class Name: GymEvaluator
Method Name: __init__


Project Name: tensorflow/models
Commit Name: 5d5fb7ccf6e6aa056532e10c167e83aced2c924f
Time: 2017-07-18
Author: derekjchow@gmail.com
File Name: object_detection/core/box_predictor.py
Class Name: ConvolutionalBoxPredictor
Method Name: _predict