WP Tutorials

Self-Driving Car with JavaScript Course – Neural Networks and Machine Learning

Self-Driving Car with JavaScript Course – Neural Networks and Machine Learning

Self-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)

  1. 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

  2. Time stamp
    26:00

  3. Great Video! Many Thx for it

  4. my car isn''t reversing how come

  5. for bestCar = cars.reduce((best, car) => best.y < car.y ? car : best)

  6. Fun. But something you could do in a PID controller system, more reliable than AI and faster.😂

  7. Thank you for this useful content sir❤

  8. type of teacher = "guys who wrote each line of codes seriously"

  9. 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.

  10. raju raju bhaiya to forigner nikel

  11. setLineDash is making the lines disappear for me. Anyone else with this issue?

  12. Best Sunday fun I’ve had in a long time. Many thanks.

  13. Hey.. The code in the github is different from the code of tutorial.. How can i configure the github files ?

  14. how are you getting your code to run without importing car.js into main and adding an export statement at the end of Car.

  15. 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.

  16. wow I am impressed.

  17. I've learned a lot! thx

  18. Loved the Tank Part with histrocial importance 1:37:00 😂😂😂😂

  19. This is really cool! This is the first time I felt like I understood neural networks!

  20. Can I implement this into a Real Car ?

  21. Some people make me feel like programming is easy😂. Just coding effortlessly

  22. 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

  23. 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?

  24. Exceptional training course with coding in real time with crystal clear explanations during work. Never seen such a valuable video.

  25. A very cool and well-constructed lesson. Thanks 🤝

  26. Real?

  27. Great 😃

  28. 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?

  29. I did not understand the message at 56:45.

  30. worried more about the blue car than about my relationship

  31. How the car senses the environment? Could u please explain

  32. Finally understood how machine learning works just thank you, wanted to start some projects but could not understand how

  33. 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.

  34. Awesome video. Amazing teacher, great communication skills!

  35. 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

  36. Do one with python

  37. Why do you use static methods for the network, when they work on the instance?

  38. I got imposter syndrome at about an hour and 10 mins in, time to brush up on my trig.

  39. 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">

  40. This is so difficult. Each point is relatively understandable but continually stretching this is hard.

  41. 56:46 this.rays[i][0] showing error

  42. can I get the documentation for this project

  43. Wow

Leave your thought here

Your email address will not be published. Required fields are marked *

Enable Notifications OK No thanks