b50695e45350a8a4d11bd60ba1801d6ae93eddbf,src/garage/tf/regressors/continuous_mlp_regressor.py,ContinuousMLPRegressor,predict_sym,#ContinuousMLPRegressor#Any#Any#,112

Before Change



    def predict_sym(self, xs, name=None):
        with tf.name_scope(name, "predict_sym", values=[xs]):
            return L.get_output(self.l_out, xs)

    def fit(self, xs, ys):
        if self.normalize_inputs:
            // recompute normalizing constants for inputs

After Change


        with tf.compat.v1.variable_scope(self._variable_scope):
            y_hat, _, _ = self.model.build(xs, name=name)

        return y_hat

    def get_params_internal(self, **args):
        Get the params, which are the trainable variables.
        return self._variable_scope.trainable_variables()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rlworkgroup/garage
Commit Name: b50695e45350a8a4d11bd60ba1801d6ae93eddbf
Time: 2019-09-26
Author: 38871737+avnishn@users.noreply.github.com
File Name: src/garage/tf/regressors/continuous_mlp_regressor.py
Class Name: ContinuousMLPRegressor
Method Name: predict_sym


Project Name: keras-team/keras
Commit Name: ee179f7da155c3cb8129b954db828906886ad4e4
Time: 2015-06-08
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: get_input


Project Name: rlworkgroup/garage
Commit Name: d2b072e3dc4c1b50935d0feb343e6e1debd1061c
Time: 2019-09-27
Author: ahtsans@gmail.com
File Name: src/garage/tf/q_functions/continuous_mlp_q_function.py
Class Name: ContinuousMLPQFunction
Method Name: get_qval_sym