¡@

Home 

python Programming Glossary: derror

How to create a simple Gradient Descent algorithm

http://stackoverflow.com/questions/3837692/how-to-create-a-simple-gradient-descent-algorithm

i'm trying to understand itstep by step . i 1 import sys derror sys.maxint error 0 step 0.0001 dthresh 0.1 import random theta1.. theta2 random.random theta0 random.random while derror dthresh diff 400 theta0 2104 theta1 3 theta2 theta0 theta0 step.. step diff 2104 theta2 theta2 step diff 3 hserror diff 2 2 derror abs error hserror error hserror print 'iteration d error s'..