huleg / kotlin_simple_neural_network

A simple neural network application built in Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Watch YouTube Video Here

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.

About

A simple neural network application built in Kotlin


Languages

Language:Kotlin 100.0%