view tvii/gradient_descent.py @ 60:38fe99071b11

[documentation] install editable instructions that work
author Jeff Hammel <k0scist@gmail.com>
date Sat, 02 Dec 2017 10:22:25 -0800
parents 857a606783e1
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 - ....