An open API service indexing awesome lists of open source software.

https://github.com/thomasnield/bayes_user_input_prediction

Demonstration of using Naive Bayes to predict user inputs with Kotlin 1.2 std-lib
https://github.com/thomasnield/bayes_user_input_prediction

bayes bayes-classifier data-science kotlin

Last synced: about 1 year ago
JSON representation

Demonstration of using Naive Bayes to predict user inputs with Kotlin 1.2 std-lib

Awesome Lists containing this project

README

          

# Naive Bayes/Logistic Regression User Input Prediction

This is a simple [Kotlin](http://kotlinlang.org/) application that leverages Naive Bayes or logistic regression to categorize bank transactions.

![](demo_animation.gif)

## YouTube Walkthrough

[![](https://img.youtube.com/vi/JLSdW60t898/hqdefault.jpg)](https://www.youtube.com/watch?v=JLSdW60t898)

## Featured at KotlinConf 2018 in Amsterdam

[![](https://img.youtube.com/vi/-zTqtEcnM7A/hqdefault.jpg)](https://youtu.be/-zTqtEcnM7A)

## Details

NOTE: [Kotlin-Statistics](https://github.com/thomasnield/kotlin-statistics#naive-bayes-classifier) 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](http://a.co/i6i5wEX ) 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.