Best Food - For all Patches (genetic algorithm)
TheCherry last edited by TheCherry
I wrote a genetic algorithm that find for every Patch the best food.
- Download: https://gist.github.com/TheCherry/2e71893d01bc54c65ee22b17c173ef27
- Install python, pip and with pip then deap.
- Download the newst ECO Version and copy the Food directory to the python file.
- Set the Craftstations in Top of the File that you want to include in the finding method
- Start the Process.
My best found Combination (94.45 SP without the 12 Basepoints) was:
Bear S U P R E M
Have Fun =)
MikirMikir last edited by
hey mate, im total idiot to python is there away u can make a video or screenshot heelp how to set it up ? so more there is not that good in python can get it 2?
goblix last edited by
nice script.. currently getting script warnings/errors when running it though.
find_best_food.py:43: SyntaxWarning: name 'ban_items' is assigned to before global declaration
global max_food_combinations, ban_items
C:\Python27\lib\site-packages\deap\tools_hypervolume\pyhv.py:33: ImportWarning: Falling back to the python version of hypervolume module. Expect this to be very slow.
"module. Expect this to be very slow.", ImportWarning)
Traceback (most recent call last):
File "find_best_food.py", line 93, in <module>
data = load_data(path_to_food)
File "find_best_food.py", line 75, in load_data
if(len(only_craft) == 0 or match.group("craft") in craftstations):
NameError: global name 'only_craft' is not defined