tag:github.com,2008:https://github.com/TuSun12379/GeneticAlgorithmPython/releasesRelease notes from GeneticAlgorithmPython2021-01-15T16:18:02Ztag:github.com,2008:Repository/335629715/2.10.22021-01-15T16:18:02ZPyGAD 2.10.2<p>A bug fix when save_best_solutions=True. Refer to this issue for more information: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="786771787" data-permission-text="Title is private" data-url="https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/25" data-hovercard-type="issue" data-hovercard-url="/ahmedfgad/GeneticAlgorithmPython/issues/25/hovercard" href="https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/25">ahmedfgad#25</a></p>ahmedfgadtag:github.com,2008:Repository/335629715/2.10.12021-01-11T02:46:01ZPyGAD 2.10.1 Documentation<ol>
<li>In the <code>gene_space</code> parameter, any <code>None</code> value (regardless of its index or axis), is replaced by a randomly generated number based on the 3 parameters <code>init_range_low</code>, <code>init_range_high</code>, and <code>gene_type</code>. So, the <code>None</code> value in <code>[..., None, ...]</code> or <code>[..., [..., None, ...], ...]</code> are replaced with random values. This gives more freedom in building the space of values for the genes.</li>
<li>All the numbers passed to the <code>gene_space</code> parameter are casted to the type specified in the <code>gene_type</code> parameter.</li>
<li>The <code>numpy.uint</code> data type is supported for the parameters that accept integer values.</li>
<li>In the <code>pygad.kerasga</code> module, the <code>model_weights_as_vector()</code> function uses the <code>trainable</code> attribute of the model's layers to only return the trainable weights in the network. So, only the trainable layers with their <code>trainable</code> attribute set to <code>True</code> (<code>trainable=True</code>), which is the default value, have their weights evolved. All non-trainable layers with the <code>trainable</code> attribute set to <code>False</code> (<code>trainable=False</code>) will not be evolved. Thanks to <a href="https://github.com/tfarrag2000">Prof. Tamer A. Farrag</a> for pointing about that at <a href="https://github.com/ahmedfgad/KerasGA/issues/1" data-hovercard-type="issue" data-hovercard-url="/ahmedfgad/KerasGA/issues/1/hovercard">GitHub</a>.</li>
</ol>ahmedfgadtag:github.com,2008:Repository/335629715/2.10.02021-01-04T02:09:26Z2.10.0: Link to TorchGA project at GitHub<p>Link to TorchGA project at GitHub: <a href="https://github.com/ahmedfgad/TorchGA">https://github.com/ahmedfgad/TorchGA</a></p>ahmedfgadtag:github.com,2008:Repository/335629715/2.9.02020-12-05T23:29:23ZPyGAD 2.9.0<p>Changes in PyGAD 2.9.0 (06 December 2020):</p>
<ol>
<li>The fitness values of the initial population are considered in the <code>best_solutions_fitness</code> attribute.</li>
<li>An optional parameter named <code>save_best_solutions</code> is added. It defaults to <code>False</code>. When it is <code>True</code>, then the best solution after each generation is saved into an attribute named <code>best_solutions</code>. If <code>False</code>, then no solutions are saved and the <code>best_solutions</code> attribute will be empty.</li>
<li>Scattered crossover is supported. To use it, assign the <code>crossover_type</code> parameter the value <code>"scattered"</code>.</li>
<li>NumPy arrays are now supported by the <code>gene_space</code> parameter.</li>
<li>The following parameters (<code>gene_type</code>, <code>crossover_probability</code>, <code>mutation_probability</code>, <code>delay_after_gen</code>) can be assigned to a numeric value of any of these data types: <code>int</code>, <code>float</code>, <code>numpy.int</code>, <code>numpy.int8</code>, <code>numpy.int16</code>, <code>numpy.int32</code>, <code>numpy.int64</code>, <code>numpy.float</code>, <code>numpy.float16</code>, <code>numpy.float32</code>, or <code>numpy.float64</code>.</li>
</ol>ahmedfgadtag:github.com,2008:Repository/335629715/2.8.12020-10-03T03:53:38Z2.8.1: Bug fix in applying crossover<p>Bug fix in applying the crossover operation when the <code>crossover_probability</code> parameter is used.<br>
Thanks to Eng. Hamada Kassem, RA/TA, Construction Engineering and Management, Faculty of Engineering, Alexandria University, Egypt: <a href="https://www.linkedin.com/in/hamadakassem" rel="nofollow">https://www.linkedin.com/in/hamadakassem</a></p>ahmedfgadtag:github.com,2008:Repository/335629715/2.8.02020-09-20T21:49:13Z2.8.0<p>Train Keras models using PyGAD (pygad.kerasga)</p>ahmedfgadtag:github.com,2008:Repository/335629715/2.7.22020-09-14T16:49:47Z2.7.2<p>Add files via upload</p>ahmedfgadtag:github.com,2008:Repository/335629715/2.7.12020-09-14T16:49:47Z2.7.1<p>Add files via upload</p>ahmedfgadtag:github.com,2008:Repository/335629715/2.7.02020-09-11T18:03:47Z2.7.0<p>Add files via upload</p>ahmedfgadtag:github.com,2008:Repository/335629715/2.6.02020-08-06T13:42:11Z2.6.0<p>Add files via upload</p>ahmedfgad