Skip to content

Instantly share code, notes, and snippets.

@jknthn jknthn/update.swift
Created Sep 26, 2017

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
You can’t perform that action at this time.