0927dff9fe1631564f4c750b81e42c9ea91a8bda,hypergan/discriminators/cramer_discriminator.py,CramerDiscriminator,f,#CramerDiscriminator#Any#Any#Any#,51
Before Change
ops = self.ops
distance = config.distance or l2_distance
return distance(net, dg) - distance(dx, 0)
After Change
def f(self, net, dx, dg):
// TODO TODO might need a second sample of X
return tf.norm(net - dg, axis=1) - tf.norm(dx, axis=1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 0927dff9fe1631564f4c750b81e42c9ea91a8bda
Time: 2017-06-12
Author: mikkel@255bits.com
File Name: hypergan/discriminators/cramer_discriminator.py
Class Name: CramerDiscriminator
Method Name: f
Project Name: bethgelab/foolbox
Commit Name: 80cfb0e5f889c65a972ebde6c6dae4278b5e28c1
Time: 2020-02-14
Author: git@jonasrauber.de
File Name: foolbox/attacks/base.py
Class Name: MinimizationAttack
Method Name: __call__
Project Name: biotite-dev/biotite
Commit Name: 5d661491dbc620830f068456fcefcd71f51b16dc
Time: 2020-05-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _check_dssr_criteria