Published on March 19, 2018 by LearnCode.academy

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 24ways.org/2010/calculating-color-contrast)

Leave a Reply

226 Comments on "Machine Learning Tutorial for Beginners – USING JAVASCRIPT!"

Notify of
avatar

sam code
Guest
sam code
1 day 20 hours ago

it gives me a error in browser console:
Uncaught TypeError: input.addEventListener is not a function
at index.html:39
(anonymous) @ index.html:39

plz help me….

but you are doing great work keep up bro

Program With Erik
Guest
Program With Erik
5 days 12 hours ago

Really like this topic, please keep going!

Juan
Guest
Juan
6 days 21 hours ago

damn, machine learning is cool

trippy1012
Guest
trippy1012
7 days 12 hours ago

great video, thanks! much easier to get my feet wet with machine learning than tensorflow as a noob

trouble
Guest
trouble
11 days 16 hours ago

Thx you, bro. Thats nice, please more lessons about brain.js From Russia with love <3

itsmepionman
Guest
itsmepionman
12 days 18 hours ago

Gay

itsmepionman
Guest
itsmepionman
11 days 21 hours ago

Ultra gay

LearnCode.academy
Guest
LearnCode.academy
12 days 1 hour ago

Super gay

Jagjot Singh
Guest
Jagjot Singh
13 days 20 hours ago

Can we use advanced regression algorithm using JS ?

Mark Wade
Guest
Mark Wade
15 days 14 hours ago

Cool and inspiring, thanks! Would be keen to see more.

Pierre Soubourou
Guest
Pierre Soubourou
16 days 44 minutes ago

Unreadable, because too small

Jason Codes
Guest
Jason Codes
16 days 16 hours ago

Luv it but could u please upload to github.Pls?

Jason Codes
Guest
Jason Codes
16 days 12 hours ago

True but the starter could would be highly appreciated.No offense or anythin, I had some trouble at the begginin but I guess coders should learn to work with errors.

LearnCode.academy
Guest
LearnCode.academy
16 days 12 hours ago

There's a link of the code in the description!

1 2 3 16
wpDiscuz