mattnedrich / gradientdescentexample Goto Github PK
View Code? Open in Web Editor NEWExample demonstrating how gradient descent may be used to solve a linear regression problem
License: MIT License
Example demonstrating how gradient descent may be used to solve a linear regression problem
License: MIT License
I change Learning rate to 0.0005, and i get the following warning message:
gradient_descent_example.py:23: RuntimeWarning: invalid value encountered in double_scalar
new_m = m_current - (learningRate * m_gradient)
.
And this is result:
"After 10000 iterations b = nan, m = nan, error = nan"
How to fix it???
dear matt:
i am a beginner in machine learning.Thanks for your code,make me learn a lot.
i'm interested in the dynamic graph you made,and try to recurrence it.But when i learn and use "matplotlib.animation",i met some problms.i think,if you can give me your animation code,it will be of great help to me.
thank you very much!:)
Hello,
I am trying to run this python code but I am receiving an error in the following line of code
print "Starting gradient descent at b = {0}, m = {1}, error = {2}".format(initial_b, initial_m, compute_error_for_line_given_points(initial_b, initial_m, points))
Hi matt , thanks for your great example it's really helped me a lot , I was wondering if you have the codes for the visualisation (plots) you have used to demonstrate gradient descent , as that would help me have a deeper understanding of how it works.
many thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.