Skip to content

MightyPixel/guess_recipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guess_recipe

Genetic algorithm that reverse engineers a recipe

Example guessing lasagna ("tomatoes", "cheese", "sweet Italian sausage", "garlic")

[G   1] score=( -13,  -50,  -94): ['water', 'paper', 'minced onion', 'lemon']
[G   2] score=(  -9,  -41,  -78): ['butter', 'milk', 'garlic', 'tomatoes']
[G   3] score=( -11,  -34,  -77): ['salmon', 'flour', 'sweet Italian sausage', 'garlic']
[G   4] score=(  -8,  -27,  -53): ['salmon', 'milk', 'sweet Italian sausage', 'garlic']
[G   5] score=(  -7,  -23,  -47): ['salmon', 'cheese', 'sweet Italian sausage', 'garlic']
[G   6] score=(  -7,  -20,  -44): ['salmon', 'cheese', 'sweet Italian sausage', 'garlic']
[G   7] score=(  -7,  -17,  -34): ['salmon', 'cheese', 'sweet Italian sausage', 'garlic']
[G   8] score=(  -4,  -14,  -27): ['water', 'paper', 'sweet Italian sausage', 'garlic']
[G   9] score=(  -3,  -12,  -22): ['water', 'olives', 'sweet Italian sausage', 'garlic']
[G  10] score=(  -3,  -11,  -19): ['water', 'olives', 'sweet Italian sausage', 'garlic']
[G  11] score=(  -2,  -10,  -18): ['water', 'cheese', 'sweet Italian sausage', 'garlic']
[G  12] score=(  -2,   -8,  -16): ['water', 'cheese', 'sweet Italian sausage', 'garlic']
[G  13] score=(  -2,   -7,  -14): ['water', 'cheese', 'sweet Italian sausage', 'garlic']
[G  14] score=(  -2,   -6,  -13): ['water', 'cheese', 'sweet Italian sausage', 'garlic']
[G  15] score=(  -2,   -6,  -12): ['water', 'cheese', 'sweet Italian sausage', 'garlic']
[G  16] score=(  -1,   -5,  -11): ['tomatoes', 'olives', 'sweet Italian sausage', 'garlic']
[G  17] score=(   0,   -4,  -12): ['tomatoes', 'cheese', 'sweet Italian sausage', 'garlic']

About

Genetic algorithm that reverse engineers a recipe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages