This commit is contained in:
Morten Hjorth-Jensen
2021-11-03 06:43:49 +01:00
parent 2d6b94571f
commit f6ac0c5f91
6 changed files with 269 additions and 264 deletions
+1
View File
@@ -1478,6 +1478,7 @@ def learning_schedule(t):
theta = np.random.randn(2,1)
# note: here the number of minibatches is equal to the number of points!!
for epoch in range(n_epochs):
for i in range(m):
random_index = np.random.randint(m)