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
- Host: GitHub
- URL: https://github.com/thomasnield/bayes_user_input_prediction
- Owner: thomasnield
- License: apache-2.0
- Created: 2018-03-20T16:04:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T14:53:59.000Z (over 6 years ago)
- Last Synced: 2025-03-22T18:11:24.037Z (about 1 year ago)
- Topics: bayes, bayes-classifier, data-science, kotlin
- Language: Kotlin
- Homepage:
- Size: 3.58 MB
- Stars: 26
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

## YouTube Walkthrough
[](https://www.youtube.com/watch?v=JLSdW60t898)
## Featured at KotlinConf 2018 in Amsterdam
[](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.