December 2018
Intermediate to advanced
268 pages
8h 23m
English
Let's talk about the critical pieces in this architecture to make sure this is easy to understand:
def train(self): for e in range(self.EPOCHS):
# Grab a batchcount_real_images = int(self.BATCH/2)starting_index = randint(0, (len(self.X_train)-count_real_images))real_images_raw = self.X_train[ starting_index : (starting_index + count_real_images) ]x_real_images = real_images_raw.reshape( count_real_images, self.W, self.H, self.C ) y_real_labels = np.ones([count_real_images,1])
Read now
Unlock full access