llsourcell / how_to_do_math_for_deep_learning Goto Github PK
View Code? Open in Web Editor NEWThis is the code for "How to Do Math Easily - Intro to Deep Learning #4' by Siraj Raval on YouTube
This is the code for "How to Do Math Easily - Intro to Deep Learning #4' by Siraj Raval on YouTube
In line 28, what is written is:
k0 = X
It should be:
k0 = nonlin(X)
this is so that the weights are effected by the output of the node and not the input, and would also be consistent with the k1 and k2 values used.
When I run the Jupiter notebook, line 14 will not display unless the variable is in parentheses. Anyone else encountering this?
anyone knows what's the exact problem here?
it's giving me a syntax error in python3
-----k2_delta = k2_error * nonlin(k2,deriv=True)
------------^
SyntaxError: invalid syntax
syn1 += k1.T.dot(k2_delta) syn0 += k0.T.dot(k1_delta)
Could you explain a little more in depth the thought process behind these lines? Came here from the video and still confused. How does k1.dot k2_delta create the amount to update the weight? I understand the gradient is the direction we need to travel but wouldn't we just subtract that distance from the weight? Why do we need to dot product?
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.