December 2018
Intermediate to advanced
268 pages
8h 23m
English
To build the training function, perform the following steps:
def train(self): for e in range(self.EPOCHS): b = 0 X_real_temp = deepcopy(self.X_real) X_sim_temp = deepcopy(self.X_sim)
Remember to ensure that there are copies of both the real and simulated data while keeping track of batches with the b variable.
combined_loss = np.zeros(shape=len(self.gan.gan_model.metrics_names)) discriminator_loss_real = np.zeros(shape=len(self.discriminator.Discriminator.metrics_names)) discriminator_loss_sim = np.zeros(shape=len(self.discriminator.Discriminator.metrics_names)) ...
Read now
Unlock full access