Skip to content

Instantly share code, notes, and snippets.

View obengwilliam's full-sized avatar
🎯
Focusing

Obeng William obengwilliam

🎯
Focusing
View GitHub Profile
@obengwilliam
obengwilliam / mbg.py
Last active May 6, 2021 20:09
mbg.py
self.init_plot(self.FEATURES)
has_converged = False
iter = 1
while not has_converged:
print(f"iter {iter}")
minibatch = random.sample(range(0, self.DATAPOINTS), self.MINIBATCH_SIZE)
for k in range(self.FEATURES):