Skip to content

Two neural networks written from scratch in Java using machine learning to learn English words and tic-tac-toe.

Notifications You must be signed in to change notification settings

mast0rbill/machine-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Machine Learning with Neural Networks

This project demonstrates two neural networkss written from scratch in Java:

LanguageDetection is a back-propagation neural network that learns whether an input word is an English word or a random sequence of characters. This uses back-propagation based on a learning file generated from an online dictionary. It is able to achieve a 91% accuracy on the test case.

NeuralNet_TicTacToe implement a genetic algorithm to "organically" learn tic-tac-toe. Each generation has a population of 1000, and competes either against a perfect opponent or against other nets. After one million generations it achieves a local maximum of about 50% win-rate against the perfect opponent.

To train, run Train() in main. To test with manual input, run HumanInput().

About

Two neural networks written from scratch in Java using machine learning to learn English words and tic-tac-toe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages