Skip to content

Using Genetic Algorithm to find the optimal network parameters of Multi-Layer Perceptron for classification tasks

License

Notifications You must be signed in to change notification settings

aiir-team/GaEvolutionMLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GaEvolutionMLP

  • Using Genetic Algorithm to find the optimal network parameters of Multi-Layer Perceptron for classification tasks

On the easy MNIST dataset, we are able to quickly find a network that reaches > 98% accuracy. On the more challenging CIFAR10 dataset, we get to 56% after 10 generations (with population 20).

To run

To run the brute force algorithm:

python3 brute.py

To run the genetic algorithm:

python3 main.py

You can set your network parameter choices by editing each of those files first. You can also choose whether to use the MNIST or CIFAR10 datasets. Simply set dataset to either mnist or cifar10.

Credits

Contributing

Have an optimization, idea, suggestion, bug report? Pull requests greatly appreciated!

License

MIT

About

Using Genetic Algorithm to find the optimal network parameters of Multi-Layer Perceptron for classification tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages