jpsember / ml_old

Python and machine learning experiments
0 stars 0 forks source link

Investigate back propagation algorithm #3

Closed jpsember closed 7 years ago

jpsember commented 7 years ago

It's a way of calculating the gradient of a (perhaps very complex, non-linear) function by expressing the calculation of the function as a directed graph going left to right (i.e, forward), then following some simple rules to calculate the gradient from right to left (i.e., backward).

jpsember commented 7 years ago
py> backprop.py 
Input:    [5, 2, 12]
Gradient: [3, 6, 0]