Demonstration of using Naive Bayes to predict user inputs with Kotlin 1.2 std-lib
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/kotlin
.gitignore
LICENSE
README.md
build.gradle
demo_animation.gif
gradlew
gradlew.bat
inputs.txt

README.md

Naive Bayes User Input Prediction

This is a simple Kotlin application that leverages Naive Bayes to categorize bank transactions.

YouTube Walkthrough

Featured at KotlinConf 2018 in Amsterdam

Details

NOTE: Kotlin-Statistics now has this feature in an easy-to-use API.

Input and categorize a few transactions, and the simple AI will start to predict the categories once it picks up probabilities for given keywords.

Chapter 13 of O'Reilly Data Science From Scratch by Joel Grus was a useful reference.

Here is a recorded demo. The first three transactions did not have enough data to predict. But after the fourth transaction, the algorithm starts to make accurate predictions.