Self-Driving Car with JavaScript Course – Neural Networks and Machine Learning
September 1, 2024 2024-09-01 1:06Self-Driving Car with JavaScript Course – Neural Networks and Machine Learning
Learn how to create a neural network using JavaScript with no libraries. In this course you will learn to make a self-driving car simulation by implementing every component step-by-step. You will learn how to implement the car driving mechanics, how to define the environment, how to simulate some sensors, how to detect collisions, and how to make the car control itself using a neural network.
The course covers how artificial neural networks work, by comparing them with the real neural networks in our brain. You will learn how to implement a neural network and how to visualize it so we can see it in action.
✏️ Dr. Radu Mariescu-Istodor created this course. Check out his channel: https://www.youtube.com/channel/UC3XGlNq8O5hZlZBJlSFB4jg
💻 Code: https://github.com/gniziemazity/Self-driving-car
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Intro
⌨️ (0:03:44) Car driving mechanics
⌨️ (0:32:26) Defining the road
⌨️ (0:50:50) Artificial sensors
⌨️ (1:10:07) Collision detection
⌨️ (1:23:20) Simulating traffic
⌨️ (1:34:57) Neural network
⌨️ (2:03:10) Parallelization
⌨️ (2:18:31) Genetic algorithm
⌨️ (2:29:40) Ending
⭐️ Links ⭐️
🔗 Radu’s website (with enhanced version of code): https://radufromfinland.com
🔗 Radu’s workplace (consider applying): https://karelia.fi/en/front-page
🔗 Segment intersection (Math and JavaScript code): https://youtu.be/fHOLQJo0FjQ
🔗 Visualizing a neural network in JavaScript: https://youtu.be/lok3RVBwSqE
🔗 Visualizer code: https://radufromfinland.com/projects/selfdrivingcar/visualizer.js
🔗 Drawing random color cars in JavaScript: https://youtu.be/SL6PfDpSjao
🎉 Thanks to our Champion and Sponsor supporters:
👾 Raymond Odero
👾 Agustín Kussrow
👾 aldo ferretti
👾 Otis Morgan
👾 DeezMaster
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
source
Comments (47)
@freecodecamp
After this course, learn from Radu how to make your self-driving cars drive in a virtual world! https://www.youtube.com/watch?v=V_C7L7zelz8&list=PLB0Tybl0UNfZtY5IQl1aNwcoOPJNtnPEO
@Ab-gf8pz
Time stamp
26:00
@th2010
Great Video! Many Thx for it
@tumishomatjee8644
my car isn''t reversing how come
@peryMimon
for bestCar = cars.reduce((best, car) => best.y < car.y ? car : best)
@CallousCoder
Fun. But something you could do in a PID controller system, more reliable than AI and faster.😂
@THINKPOSITIVE1161
Thank you for this useful content sir❤
@tariush
type of teacher = "guys who wrote each line of codes seriously"
@Shagidelic
Radu! if i understood it correctly this network is only using forward propagation and not backward propagation right?
I was able to finish creating this car successfully. however, success rate is not 100% for perfect cars. and i think it is because backward propagation is missing. Lets hope you cover this in future lessons.
@rockstarnandini1677
raju raju bhaiya to forigner nikel
@Yenkieldemente
setLineDash is making the lines disappear for me. Anyone else with this issue?
@bones1225
Best Sunday fun I’ve had in a long time. Many thanks.
@hiteshgupta8474
42:25
@Brahmeshwarthakur-vc6qo
Hey.. The code in the github is different from the code of tutorial.. How can i configure the github files ?
@stephenharrell8356
how are you getting your code to run without importing car.js into main and adding an export statement at the end of Car.
@16sense
2:29:10 I am stuck here. My console error says:
Cannot read properties main.js:75 of undefined (reading ‘y’)
What is the problem here and how do I fix it?
Edit: If I put N=2 I see a single car and it works but N=1 gives the error.
@JacobSean-iy3tl
wow I am impressed.
@lucasyang2035
I've learned a lot! thx
@oscarpitt823
Loved the Tank Part with histrocial importance 1:37:00 😂😂😂😂
@PainRUify
This is really cool! This is the first time I felt like I understood neural networks!
@theonlycr584
Can I implement this into a Real Car ?
@NAYY_STUDIOS
Some people make me feel like programming is easy😂. Just coding effortlessly
@migdress
This is the best video I've ever seen on youtube in my entire life. The level of this man is so high, he's got javascript, math and ai tattooed in his mind like it is the ability of breathing for any human being
@eMgotcha77
So i tried this tutorial too and what happens for me is that Sensor.draw() will be called BEFORE Sensor.update(), so this.rays array is empty after reloading and thus i get an JS error.
I changed the for loop in Sensor.draw() to use this.rays.length and not this.raysCount.
Btw. i'm using Chromium … maybe the order is different there?
@jeanaimarre8605
Exceptional training course with coding in real time with crystal clear explanations during work. Never seen such a valuable video.
@drone-plus-plus
A very cool and well-constructed lesson. Thanks 🤝
@FryingMike
Real?
@dimapopov5962
Great 😃
@Strawberry-oz1qu
Cannot read properties of undefined (reading '1')
I am getting this error, I have tried everything, even pasted your code from Github but still getting this error what to do?
@adibadib1507
I did not understand the message at 56:45.
@alexandrshadrin7683
worried more about the blue car than about my relationship
@ramachandrankrishnamurthy6164
How the car senses the environment? Could u please explain
@5skr0ll3r3
Finally understood how machine learning works just thank you, wanted to start some projects but could not understand how
@colinbergmann5750
1:33:45 I'm stuck with the get reading not seeing traffic. Everything else up until putting that if statement for traffic works and still works afterwards, just not rays touching traffic. Spent the last two days staring at this code and it is the same as your code. I'm at a loss.
@forheuristiclifeksh7836
5:26
@forheuristiclifeksh7836
4:36
@forheuristiclifeksh7836
3:49
@26brains
Awesome video. Amazing teacher, great communication skills!
@Cake-bz5bf
I only know html css js, will i be available to watch and understand this? He is talking about physics and other hard stuff @Radu
@EagerRobotFigurine-pj1lj
Do one with python
@A3A3adamsan
Why do you use static methods for the network, when they work on the instance?
@stuartmarsh5574
I got imposter syndrome at about an hour and 10 mins in, time to brush up on my trig.
@bdannnn
In case the emojis in both visualizer (the arrows) and the save buttons don't work for people, the fix for me was adding the following meta tag under <head> in the html file: <meta charset="UTF-8">
@jamblob3208
This is so difficult. Each point is relatively understandable but continually stretching this is hard.
@hubulikhwan
56:46 this.rays[i][0] showing error
@manojkumarreddymule4454
can I get the documentation for this project
@animeshbiswas2754
Wow