This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ITS GONE! | |
I generalized the code and created examples for use in GA and GP: | |
https://github.com/DMTSource/deap_ray |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of EAP. | |
# | |
# EAP is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as | |
# published by the Free Software Foundation, either version 3 of | |
# the License, or (at your option) any later version. | |
# | |
# EAP is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Examples on how to extract and plot fitness diversity for a population, hall of fame, or | |
# frontier using histogram and probability curves. Mostly working with multi objective fitness as per | |
# question from https://groups.google.com/forum/#!topic/deap-users/Y8JX4AKwzhk | |
# Derek M Tishler - 2019 | |
import array | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GA example of an array of constrained value items with crossover and mutation, | |
# from question https://groups.google.com/forum/#!topic/deap-users/bu3v9Ozez8E | |
# Derek M Tishler - 2019 | |
# Started with example and modified to keep as simple as possible: | |
# https://raw.githubusercontent.com/DEAP/deap/454b4f65a9c944ea2c90b38a75d384cddf524220/examples/ga/onemax_np.py | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of multi objective plotting in Deap | |
# Derek M Tishler - 2018 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.rc('xtick', labelsize=8) | |
plt.rc('ytick', labelsize=8) |
NewerOlder