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)
]
autoencoder, _ = model.build(**kwargs)
if self.model_config["print_summary"]:
autoencoder.summary()
try:
In pattern: SUPERPATTERN
Frequency: 3
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: fizyr/keras-retinanet
Commit Name: 12f2879ed31b677cdefa0d73d663781b2ec72880
Time: 2018-07-16
Author: lacatusu.valeriu@gmail.com
File Name: keras_retinanet/bin/debug.py
Class Name:
Method Name: run
Project Name: senarvi/theanolm
Commit Name: 4be4f3dbfb596961262e83d052b2d5dd59dddb8c
Time: 2016-11-19
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/softmaxlayer.py
Class Name: SoftmaxLayer
Method Name: create_structure