4d0e2b25a3064079923e48729a0568bbae636d88,torchbearer/callbacks/imaging/inside_cnns.py,ClassAppearanceModel,on_batch,#ClassAppearanceModel#Any#,96
Before Change
targets_hot = self._targets_hot(state)
to_prob = (lambda x: x.exp()) if self.prob_key is None else (lambda x: x)
key = self.logit_key if self.prob_key is None else self.prob_key
model = _CAMWrapper(self.input_size, state[torchbearer.MODEL])
trial = torchbearer.Trial(model, self.optimizer_factory(filter(lambda p: p.requires_grad, [model.input_batch])),
_cam_loss(key, to_prob, targets_hot, self.decay))
After Change
if training:
state[torchbearer.MODEL].train()
return model.input_image.sigmoid()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: ecs-vlc/torchbearer
Commit Name: 4d0e2b25a3064079923e48729a0568bbae636d88
Time: 2019-06-26
Author: ethanwharris@gmail.com
File Name: torchbearer/callbacks/imaging/inside_cnns.py
Class Name: ClassAppearanceModel
Method Name: on_batch
Project Name: HyperGAN/HyperGAN
Commit Name: 81871180c30f64aafdac700c4d2d2993e81577b6
Time: 2017-01-05
Author: martyn@255bits.com
File Name: hypergan/generators/resize_conv.py
Class Name:
Method Name: generator
Project Name: jhfjhfj1/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/hyper_head.py
Class Name: ClassificationHead
Method Name: build