d5f386ee8b68b01e77278f2b318de3aebbc55373,src/experiments/core.py,Experiment,model,#Experiment#,64
Before Change
weights = datasets.load(dataset_name).class_weights
loss = w_categorical_crossentropy(weights=weights)
config = self.model_config
nc = datasets.load(dataset_name).num_classes()
w = config["dw"]
h = config["dh"]
autoencoder, model_name = model.build(nc=nc, w=w, h=h, loss=loss)
if "h5file" in self.model_config:
After Change
kwargs = self.model_config
kwargs["nc"] = self.DatasetClass.num_classes()
weights = self.DatasetClass.class_weights()
kwargs["loss"] = [
"categorical_crossentropy",
// w_categorical_crossentropy(weights=weights)
]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: PavlosMelissinos/enet-keras
Commit Name: d5f386ee8b68b01e77278f2b318de3aebbc55373
Time: 2017-10-04
Author: pmelissi@iti.gr
File Name: src/experiments/core.py
Class Name: Experiment
Method Name: model
Project Name: analysiscenter/batchflow
Commit Name: cc07095b2f72ff3ba5e5d76900ff17111cf9f177
Time: 2019-07-29
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/models/tf/unet.py
Class Name: UNet
Method Name: build_config
Project Name: fizyr/keras-retinanet
Commit Name: 9d4bb495e2b823ae73b5bd702d0a04ec004c883d
Time: 2018-10-15
Author: h.gaiser@fizyr.com
File Name: keras_retinanet/bin/debug.py
Class Name:
Method Name: run
Project Name: analysiscenter/batchflow
Commit Name: b1d15d9a4476f110d1a7c59051ed49a869bc5cb6
Time: 2019-08-05
Author: d.mylzenova@analysiscenter.org
File Name: batchflow/models/tf/mobilenet.py
Class Name: MobileNet
Method Name: build_config