Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.57 KB

README.md

File metadata and controls

22 lines (14 loc) · 1.57 KB

GeneticAlgorithm

Refactoring and improving a gist from Ms Vijini Mallawaarachchi ( @Vini2 )
I also took the edit of @liangyihuai into account.

For this software I'll iteratively refactor the code with some of the best practices in the software industry. However, I kept the lab "sensation", hence, Ms Vijini Mallawaarachchi could keep experimenting in the public static void main() method, as most data scientists do ;)

I won't use fancy external lib such as for logging as I want Mrs Vijini Mallawaarachchi and her datascience readers to easily clone the repository and run it with no maven/gradle dependency to install.

This is my gift to her for her very interrresting article.

This repo focuses on :

  • Object Oriented Programming refactoring (if this work ins't done and she wants to continue improving her program, she'll find it harder to reuse the code if the structure is wobbly)
  • adding usefull and nice customizable printouts
  • going forward (I'try to add some more features I have in mind, relative to her genetic algorithm :) )

Example partial output when each individual has 50 genes :

with some small parameters

Example complete output when each individual has only 5 genes :

with some large parameters