Skip to content

Commit fe1df31

Browse files
committed
Added a comment to project 1
1 parent 711dbe8 commit fe1df31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_1/neural_network.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def batch_loader(self, X: np.ndarray, Y: np.ndarray, batch_size: int, shuffle=Tr
166166
num_batches = dataset_size // batch_size
167167
else:
168168
# Drop last batch if the dataset is not evenly divisible by the batch size
169-
num_batches = int(np.ceil(dataset_size / batch_size))
169+
num_batches = int(np.ceil(dataset_size / batch_size)) # TODO .floor() maybe?
170170

171171
indices = list(range(dataset_size))
172172

0 commit comments

Comments
 (0)