Deprecated: Function create_function() is deprecated in /var/www/vhosts/eduardoarellano.com/d4mations.com/wp-content/plugins/wp-automatic/wp-automatic.php on line 70
Machine Learning Tutorial for Beginners – USING JAVASCRIPT! | D4mations.com
  • Monday , 28 September 2020

Machine Learning Tutorial for Beginners – USING JAVASCRIPT!

Code Canyon



In a few lines of code, we can tackle real browser or server challenges with machine learning and neural networks! Here’s the source code:

Machine learning is a fun new(er) way to solve problems.
Rather than programming an algorithm for answering a question about our data, we instead can train a “neural network” with a set of training data. Once we have a trained network, we can use it to predict outcomes.

In this example, we will train a neural network to distinguish between dark and light colors and pick the appropriate color of text to go over the top. To do this without machine learning, there is no single solution that will always get it right (see this blog post https://24ways.org/2010/calculating-color-contrast)

-~-~~-~~~-~~-~-
Learning Web Development? Watch the FREE COURSE:
“Web Development for Absolute Beginners”!

-~-~~-~~~-~~-~-

Original source

3d Ocean

Related Posts

38 Comments

  1. someone's someone
    January 19, 2019 at 01:54

    i've got error it says no description no repository field no readme data and no license field. Solution?

  2. Hongbo Lu
    January 19, 2019 at 01:54

    thanks for the video, just one question, could you please tell me which one do you prefer, brainjs or tensorflowjs ? and why ?

  3. ukwerna
    January 19, 2019 at 01:54

    Niiiice one, thanks! This has the potential to trigger a personal sea change..

  4. Ali Nawaz
    January 19, 2019 at 01:54

    this is amazing i don't expect it to be that cool amazing man i am relay impressed by machine learning it would be so messy and and annoying to program that thing !!

  5. Eric Bashir
    January 19, 2019 at 01:54

    Great job. I love this. Can you pls do more simplified machine learning tutorials?

  6. Daniel Costa
    January 19, 2019 at 01:54

    I almost never comment or react in here but this time I have to. I’m a developer for years now and I was looking to get into AI development and try to understand the principles. It’s quite difficult to actually find a “simple but understandable” example out there. They are often more show of video that at the end you think “damn that’s difficult”. This video is perfect because it’s highlights exactly what it is about and let us start with something a developer gets right out of the bat. Thank you for the video.

  7. Jordan Fischer
    January 19, 2019 at 01:54

    I love AI

  8. alex hernandez
    January 19, 2019 at 01:54

    I found the website for the new AI https://github.com/BrainJS/brain.js

  9. Dmitry
    January 19, 2019 at 01:54

    Thank you, I know & can do this, but you have very simple and interest example!

  10. IceHacks
    January 19, 2019 at 01:54

    I don't know why I thought this was difficult seems pretty simple.

  11. Toine Koene
    January 19, 2019 at 01:54

    This is awesome

  12. Diego Segura
    January 19, 2019 at 01:54

    Great example, thanks a lot! Just one idea, I think that you cannot spread colors into light and dark ones. Aren't there neutral colors? Based on this hypothesis, some very similar colours will suddenly jump from being light to being dark. I think the IA should be trained based on the relation between the text color and the background color, and the important thing is not if is dark or light, but if its readable

  13. Peter soonye
    January 19, 2019 at 01:54

    Free Course – Machine Learning with JavaScript
    https://getfreeeducation.com/machine-learning-with-javascript/

  14. piggykce
    January 19, 2019 at 01:54

    A m a z i n g

  15. Mage Front
    January 19, 2019 at 01:54

    Damn js is fast!

  16. Lungile Madi
    January 19, 2019 at 01:54

    Great video thank you very much!!! One question, how are you serving your static file? I didnt see you run the server or give it a port yet in the browser you have a port. Interesting way of doing it

  17. Jakub Małojło
    January 19, 2019 at 01:54

    That is just so straightforward, exactly what I was looking for. Great video!

  18. Caleb Prenger
    January 19, 2019 at 01:54

    please put in the title it's using brainjs

  19. sfa20
    January 19, 2019 at 01:54

    Brilliant example and explanation, thanks

  20. Lumor
    January 19, 2019 at 01:54

    Wow, this is really cool, and you're good at explaining shit.

  21. Emperor-Ace
    January 19, 2019 at 01:54

    this was beautiful'

  22. Jeremy Snow || iPlayGames
    January 19, 2019 at 01:54

    Why was brain deprecated? Actually really want to know the story behind it.

  23. Michael Stick
    January 19, 2019 at 01:54

    Coolest thing I've seen today.

  24. Joel Hernandez
    January 19, 2019 at 01:54

    Nice! Thanks

  25. גור לביא
    January 19, 2019 at 01:54

    The perfect ML video i'v seen thanks!

  26. Asger Rud
    January 19, 2019 at 01:54

    I normally don't comment videos, but this video really helped me grasp the concept of machine learning. I'll definitely stick around for more content!

  27. BRGameSoft
    January 19, 2019 at 01:54

    What if I train my program to do something, then I wish to train him a few more things? Do I need to train EVERYTHING again or is it possible to train a few extra things only?

  28. K Camel
    January 19, 2019 at 01:54

    thanks for this 👏👏👏

  29. GeeksPort
    January 19, 2019 at 01:54

    That was awesome…

  30. Jasiu Hanc
    January 19, 2019 at 01:54

    Damn, making machine learning perks & features available to everyone. Well done brain.js, well done.

  31. Martin Naughton
    January 19, 2019 at 01:54

    Really good video and it was the first video i found to understand brain.js. It was confusing though when you used numbers largers than 1 to with brain.js I did not hear your point that it only works well with input between 1 and 0. I thought it would deal with height, width and weight data accurately like in your example with more data. Even when i put in the exact input data to run with that was in the training it never reaches over 90%. This because it was dealing with numbers over 1. Took me a few hours to find out why. Just a bit of feedback.

  32. J N
    January 19, 2019 at 01:54

    so so cool

  33. Ville-Matti Hakanpää
    January 19, 2019 at 01:54

    That was awesome! Thanks!

  34. LostInAutism
    January 19, 2019 at 01:54

    One thing that I've noticed is the lack of semicolons people use in JavaScript. I always thought it was just the way it works and that it's more lenient as opposed to other languages. As a C# developer it hurts my head and if there's a better understanding I would honestly like to know. Thanks.

  35. Bracer Jack
    January 19, 2019 at 01:54

    I downloaded "brain.js-develop.zip", inside the folder there are many js files but no brain.js, please explain to me how to include it, I don't like to use npm.

  36. Bracer Jack
    January 19, 2019 at 01:54

    Wow I fucking love your voice !

  37. R M
    January 19, 2019 at 01:54

    Brilliant vid man!

  38. Niklas Heise
    January 19, 2019 at 01:54

    Update this Tutorial to tensorflow.js pls if this dont happened already. Great Tutorial! !

Leave A Comment

You must be logged in to post a comment.