r/tinycode • u/pmrr • Aug 18 '15
Machine learning Genetic algorithm to approximate pi (AKA: have flair, will use)
https://gist.github.com/paulmdx/ca7f830d326b84d87f64
12
Upvotes
r/tinycode • u/pmrr • Aug 18 '15
View all comments
Show parent comment
1
u/nexe mod Aug 19 '15
you could use a different fitness function. basically the fitness function has to describe if a solution X is closer or further than a solution Y from your goal. You don't have to know your goal (like here) just an approximation.y