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
38 responses to “Machine Learning Tutorial for Beginners – USING JAVASCRIPT!”
i've got error it says no description no repository field no readme data and no license field. Solution?
thanks for the video, just one question, could you please tell me which one do you prefer, brainjs or tensorflowjs ? and why ?
Niiiice one, thanks! This has the potential to trigger a personal sea change..
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 !!
Great job. I love this. Can you pls do more simplified machine learning tutorials?
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.
I love AI
I found the website for the new AI https://github.com/BrainJS/brain.js
Thank you, I know & can do this, but you have very simple and interest example!
I don't know why I thought this was difficult seems pretty simple.
This is awesome
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
Free Course – Machine Learning with JavaScript
https://getfreeeducation.com/machine-learning-with-javascript/
A m a z i n g
Damn js is fast!
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
That is just so straightforward, exactly what I was looking for. Great video!
please put in the title it's using brainjs
Brilliant example and explanation, thanks
Wow, this is really cool, and you're good at explaining shit.
this was beautiful'
Why was brain deprecated? Actually really want to know the story behind it.
Coolest thing I've seen today.
Nice! Thanks
The perfect ML video i'v seen thanks!
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!
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?
thanks for this 👏👏👏
That was awesome…
Damn, making machine learning perks & features available to everyone. Well done brain.js, well done.
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.
so so cool
That was awesome! Thanks!
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.
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.
Wow I fucking love your voice !
Brilliant vid man!
Update this Tutorial to tensorflow.js pls if this dont happened already. Great Tutorial! !