a9ae9989261da6aa85e452ace0c9915fe7c90d22,src/garage/tf/baselines/gaussian_cnn_baseline.py,GaussianCNNBaseline,fit,#GaussianCNNBaseline#Any#,256

Before Change


            // recompute normalizing constants for outputs
            self._y_mean.load(np.mean(ys, axis=0, keepdims=True))
            self._y_std.load(np.std(ys, axis=0, keepdims=True) + 1e-8)
        if self._use_trust_region:
            old_means, old_log_stds = self._f_pdists(xs)
            inputs = [xs, ys, old_means, old_log_stds]
        else:
            inputs = [xs, ys]
        loss_before = self._optimizer.loss(inputs)
        tabular.record("{}/LossBefore".format(self._name), loss_before)
        self._optimizer.optimize(inputs)
        loss_after = self._optimizer.loss(inputs)

After Change


            // recompute normalizing constants for outputs
            self._y_mean.load(np.mean(ys, axis=0, keepdims=True))
            self._y_std.load(np.std(ys, axis=0, keepdims=True) + 1e-8)
            self._old_network.y_mean.load(np.mean(ys, axis=0, keepdims=True))
            self._old_network.y_std.load(
                np.std(ys, axis=0, keepdims=True) + 1e-8)
        inputs = [xs, ys]
        loss_before = self._optimizer.loss(inputs)
        tabular.record("{}/LossBefore".format(self._name), loss_before)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rlworkgroup/garage
Commit Name: a9ae9989261da6aa85e452ace0c9915fe7c90d22
Time: 2020-07-10
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/tf/baselines/gaussian_cnn_baseline.py
Class Name: GaussianCNNBaseline
Method Name: fit


Project Name: rlworkgroup/garage
Commit Name: a75ce18aabee2f97c65973dbbdf6ee3047f1f97a
Time: 2020-06-03
Author: ahtsans@gmail.com
File Name: src/garage/tf/regressors/gaussian_mlp_regressor.py
Class Name: GaussianMLPRegressor
Method Name: fit


Project Name: rlworkgroup/garage
Commit Name: a9ae9989261da6aa85e452ace0c9915fe7c90d22
Time: 2020-07-10
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/tf/baselines/gaussian_cnn_baseline.py
Class Name: GaussianCNNBaseline
Method Name: fit


Project Name: SheffieldML/GPy
Commit Name: d077d28fd1667645f2776d96e2b7914964263821
Time: 2013-01-31
Author: james.hensman@gmail.com
File Name: GPy/likelihoods/Gaussian.py
Class Name: Gaussian
Method Name: __init__