Skip to content
Create a gist now

Instantly share code, notes, and snippets.

ListOfAlgorithms = new Algorithm[](initialAlgorithmCoeffcients)
foreach dataset in datasets
foreach algorithm in ListOfAlgorithms
// do a trial on a dataset
//score how the algorithms did
algorithm.score = ScoringFunction(algorithm.result)
//good algorithms live, bad ones die
if algorithm.score > GOOD_CUTOFF
else if algorithm.score < BAD_CUTOFF
//mutate the algorithms to provide something for natural selection to work with
//Change some coefficents randomly by a small amount
//After many trials the ListOfAlgorithms should contain some good algorithms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.