view tvii/gradient_descent.py @ 44:857a606783e1

[documentation] notes + stubs on gradient descent
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 15:06:38 -0700
parents
children
line wrap: on
line source

"""
gradient descent for neural networks
"""

# Each loop:
# - computes predictions
# - compute derivatives: dw, db
# update: w = w - alpha * dw; b = b - ....