7856d22b09561e33522bdc0bd00218ae75b84bd7,softlearning/algorithms/sac.py,SAC,_init_actor_update,#SAC#,282

Before Change


        elif self._action_prior == "uniform":
            policy_prior_log_probs = 0.0

        log_target1 = self._qf1.output_for(
            self._observations_ph, actions, reuse=True)  // N
        log_target2 = self._qf2.output_for(
            self._observations_ph, actions, reuse=True)  // N
        min_log_target = tf.minimum(log_target1, log_target2)

        if self._reparameterize:
            policy_kl_loss = tf.reduce_mean(
                alpha * log_pi - min_log_target - policy_prior_log_probs)

After Change


        q_log_targets = tuple(
            q_function.output_for(
                self._observations_ph, actions, reuse=True)  // N
            for q_function in self._q_functions)
        min_q_log_target = tf.reduce_min(q_log_targets, axis=0)

        if self._reparameterize:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rail-berkeley/softlearning
Commit Name: 7856d22b09561e33522bdc0bd00218ae75b84bd7
Time: 2018-09-09
Author: kristian.hartikainen@gmail.com
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: _init_actor_update


Project Name: ilastik/ilastik
Commit Name: 97667a983d6f35b0d3cb90262edf89669b78666b
Time: 2013-03-19
Author: bergs@janelia.hhmi.org
File Name: lazyflow/utility/io/blockwiseFileset.py
Class Name: BlockwiseFileset
Method Name: _transferBlockDataHdf5


Project Name: mne-tools/mne-python
Commit Name: 2dd49058dba6cf1527e2414221d4b08b127f96d5
Time: 2019-04-24
Author: larson.eric.d@gmail.com
File Name: mne/forward/forward.py
Class Name:
Method Name: compute_depth_prior