Uploaded March 2018 | Updated November 2026, 1 hour ago
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:
codepen.io/anon/pen/NYRRQm?editors=1111
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)
-~-~~-~~~-~~-~-
Also watch: "Tailwind CSS - why CSS utility classes save so much time"
youtube.com/watch?v=oU5ar0dmQEY
-~-~~-~~~-~~-~-
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:
codepen.io/anon/pen/NYRRQm?editors=1111
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)
-~-~~-~~~-~~-~-
Also watch: "Tailwind CSS - why CSS utility classes save so much time"
youtube.com/watch?v=oU5ar0dmQEY
-~-~~-~~~-~~-~-










