MCPcopy
hub / github.com/eriklindernoren/PyTorch-GAN / step

Method step

implementations/unit/models.py:24–25  ·  view source on GitHub ↗
(self, epoch)

Source from the content-addressed store, hash-verified

22 self.decay_start_epoch = decay_start_epoch
23
24 def step(self, epoch):
25 return 1.0 - max(0, epoch + self.offset - self.decay_start_epoch) / (self.n_epochs - self.decay_start_epoch)
26
27
28##############################

Callers 15

discogan.pyFile · 0.45
stargan.pyFile · 0.45
softmax_gan.pyFile · 0.45
esrgan.pyFile · 0.45
wgan_gp.pyFile · 0.45
aae.pyFile · 0.45
infogan.pyFile · 0.45
pixelda.pyFile · 0.45
gan.pyFile · 0.45
dualgan.pyFile · 0.45
unit.pyFile · 0.45
bgan.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected