Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Layer {
...
func update(learningRate: Double) {
if previousLayer != nil {
weights = weights - (learningRate * dW)
biases = biases - (learningRate * db)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment