f056fb8f6226c83d340c869e0d5312d61acf07f0,src/garage/torch/q_functions/discrete_dueling_cnn_q_function.py,DiscreteDuelingCNNQFunction,forward,#DiscreteDuelingCNNQFunction#Any#,115

Before Change


            obs_shape = ((len(observations), ) +
                         self._env_spec.observation_space.shape)
            observations = observations.reshape(obs_shape)
        return super().forward(observations)

After Change


        out = self._module(observations)
        val = self._val(out)
        act = self._act(out)
        act = act - act.mean(1).unsqueeze(1)
        return val + act
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rlworkgroup/garage
Commit Name: f056fb8f6226c83d340c869e0d5312d61acf07f0
Time: 2021-03-23
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/q_functions/discrete_dueling_cnn_q_function.py
Class Name: DiscreteDuelingCNNQFunction
Method Name: forward


Project Name: IndicoDataSolutions/finetune
Commit Name: e9eb9d3cdef98f21f754b577b88dc259a9914ede
Time: 2019-07-17
Author: matthew.bayer@indico.io
File Name: finetune/target_models/regressor.py
Class Name: Regressor
Method Name: predict


Project Name: IndicoDataSolutions/finetune
Commit Name: 9b2f98b435d6b21a0f5d49c1a5a23c97e7357d6f
Time: 2019-07-17
Author: matthew.bayer@indico.io
File Name: finetune/target_models/ordinal_regressor.py
Class Name: OrdinalRegressor
Method Name: predict