December 2018
Intermediate to advanced
268 pages
8h 23m
English
In this section, we'll cover the highlights of what has changed in our training method:
def train(self): for e in range(self.EPOCHS): b = 0
Here, we're using the variable b to keep track of the number of batches we need to do to complete the epoch.
X_train_temp = deepcopy(self.X_train) while len(X_train_temp)>self.BATCH: # Keep track of Batches b=b+1
Remember to increment the variable b to keep track of the batch being used within the epoch.
Read now
Unlock full access