490f5b7364da85d414f4b8e93b3699e4d1b516f5,src/garage/tf/baselines/continuous_mlp_baseline.py,ContinuousMLPBaseline,fit,#ContinuousMLPBaseline#Any#,39

Before Change


        
        observations = np.concatenate([p["observations"] for p in paths])
        returns = np.concatenate([p["returns"] for p in paths])
        self._regressor.fit(observations, returns.reshape((-1, 1)))

    def predict(self, paths):
        Predict value based on paths.

After Change


        tabular.record("{}/LossBefore".format(self._name), loss_before)
        self._optimizer.optimize(inputs)
        loss_after = self._optimizer.loss(inputs)
        tabular.record("{}/LossAfter".format(self._name), loss_after)
        tabular.record("{}/dLoss".format(self._name), loss_before - loss_after)

    def predict(self, paths):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rlworkgroup/garage
Commit Name: 490f5b7364da85d414f4b8e93b3699e4d1b516f5
Time: 2020-07-02
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/tf/baselines/continuous_mlp_baseline.py
Class Name: ContinuousMLPBaseline
Method Name: fit


Project Name: rkcosmos/deepcut
Commit Name: 0347e36737b25671dff14c6c1bbbe5d090d71a06
Time: 2017-06-28
Author: titipata@allenai.org
File Name: deepcut/train.py
Class Name:
Method Name: train_model


Project Name: osmr/imgclsmob
Commit Name: 09e4a76102ff4a06a835180237ea171eb475985c
Time: 2018-09-19
Author: osemery@gmail.com
File Name: keras_/models/mobilenet.py
Class Name:
Method Name: _test