Skip to content
A simple neural network application built in Kotlin
Branch: master
Clone or download
Latest commit 76f5e23 Dec 21, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main blow up font size, update to Kotlin 1.3.10 Nov 29, 2018
.gitignore build problem structure Apr 23, 2018 Update Dec 21, 2018
build.gradle blow up font size, update to Kotlin 1.3.10 Nov 29, 2018
demo.gif update animation May 27, 2018
gradlew wip Apr 23, 2018
gradlew.bat wip Apr 23, 2018

Kotlin Simple Neural Network

This is a simple neural network application that will suggest a LIGHT or DARK font for a given background color.

The training/predicting user interface was built with TornadoFX.

YouTube Walkthrough

Featured at KotlinConf 2018 in Amsterdam


Currently there are three implementations:

  1. Simple RGB formula
  2. My feed-forward brute force implementation (no backpropagation)
  3. ojAlgo! Neural Network
  4. DeepLearning4J

For this simple toy example ojAlgo seems to perform the best, and is light and the simplest to implement. DL4J is definitely more heavyweight (with many dependencies) but is a more robust framework for larger, data-intensive deep learning problems in production. DL4J also has a nice Kotlin MNIST example.

Note also there is now a button to pre-train 1345 categorized colors.

Tariq Rashid's book Build Your Own Neural Network is a tremendous resource, as well as 3Blue1Brown's Video. Grokking Deep Learning is probably the most thorough and useful resource when you are ready to deep-dive.

You can’t perform that action at this time.