2557dab8d84b3e7ed989fc9403d6d4bde820ef98,basenji/trainer.py,Trainer,__init__,#Trainer#,30
Before Change
// loss
self.loss = self.params.get("loss","poisson")
if self.loss.lower() == "mse":
self.loss_fn = tf.keras.losses.MSE
else:
self.loss_fn = tf.keras.losses.Poisson()
After Change
self.loss = self.params.get("loss","poisson").lower()
if self.loss == "mse":
self.loss_fn = tf.keras.losses.MSE
elif self.loss == "bce":
self.loss_fn = tf.keras.losses.BinaryCrossentropy()
else:
self.loss_fn = tf.keras.losses.Poisson()
// optimizer
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: calico/basenji
Commit Name: 2557dab8d84b3e7ed989fc9403d6d4bde820ef98
Time: 2020-09-04
Author: drk@calicolabs.com
File Name: basenji/trainer.py
Class Name: Trainer
Method Name: __init__
Project Name: developmentseed/label-maker
Commit Name: 6533f4a2123077c55d3a0c8bc04bb5e71c8b36de
Time: 2018-05-08
Author: jreiberkyle@users.noreply.github.com
File Name: label_maker/utils.py
Class Name:
Method Name: is_tif
Project Name: lingpy/lingpy
Commit Name: 4560e7769fc21e04c5f673f0549de6601d43de45
Time: 2013-09-09
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name:
Project Name: daavoo/pyntcloud
Commit Name: 7c5daf825bcb84e6f750a6d6fad3a2626c4ea5ec
Time: 2020-10-06
Author: sebastian.bullinger@iosb.fraunhofer.de
File Name: pyntcloud/io/las.py
Class Name:
Method Name: read_las