e902f7e4b0cf9626cb5e3e5b0851d1b5fc90318b,yarll/agents/actorcritic/actor_critic.py,,critic_loss,#,164

Before Change


    return policy_loss

def critic_loss(returns, value):
    return tf.keras.losses.mean_squared_error(returns, value)


class ActorCriticNetworkContinuous(ActorCriticNetwork):
    Neural network for an Actor of an Actor-Critic algorithm using a continuous action space.

After Change


    return policy_loss

def critic_loss(returns, value):
    return tf.square(value - returns)


class ActorCriticNetworkContinuous(ActorCriticNetwork):
    Neural network for an Actor of an Actor-Critic algorithm using a continuous action space.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arnomoonens/yarll
Commit Name: e902f7e4b0cf9626cb5e3e5b0851d1b5fc90318b
Time: 2019-04-28
Author: arno.moonens@gmail.com
File Name: yarll/agents/actorcritic/actor_critic.py
Class Name:
Method Name: critic_loss


Project Name: SheffieldML/GPy
Commit Name: 841ca66170ecb851d2f1db9df22277318135f12f
Time: 2017-08-10
Author: eero.siivola@aalto.fi
File Name: GPy/likelihoods/binomial.py
Class Name: Binomial
Method Name: d2logpdf_dlink2


Project Name: shenweichen/DeepCTR
Commit Name: 9e6be3f28d5b213e8596b8f79e68efd6d5fd21ba
Time: 2020-05-17
Author: last.fantasy@qq.com
File Name: deepctr/layers/normalization.py
Class Name: LayerNormalization
Method Name: call