Created
November 3, 2020 17:25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def train(self): | |
""" | |
Train an MLP. Runs through the data num_epochs number of times. | |
A forward pass is done first, followed by a backward pass (backpropagation) | |
where the networks parameter's are updated. | |
""" | |
for _ in range(self.num_epochs): | |
self.forward(self.train_data) | |
self.update_weights() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment