From cb01272eaae304d56f9af3746a582a2f9f168257 Mon Sep 17 00:00:00 2001 From: HugoFara Date: Wed, 21 Jul 2021 20:30:47 +0200 Subject: [PATCH] Beta version 0.3.0. End of alpha versions. --- CHANGELOG.md | 6 ++ docs/.buildinfo | 2 +- docs/_static/documentation_options.js | 2 +- docs/api/dynamiclinkage.html | 2 +- docs/api/geneticoptimizer.html | 18 +++- docs/api/physicsengine.html | 2 +- docs/api/utility.html | 2 +- docs/api/walker.html | 2 +- docs/changeloglink.html | 131 ++++++++++++++------------ docs/examples/strider.py | 4 +- docs/genindex.html | 8 +- docs/index.html | 5 +- docs/objects.inv | Bin 1075 -> 1079 bytes docs/py-modindex.html | 2 +- docs/readmelink.html | 2 +- docs/search.html | 2 +- docs/searchindex.js | 2 +- leggedsnake/__init__.py | 2 +- setup.cfg | 6 +- source/conf.py | 2 +- 20 files changed, 121 insertions(+), 81 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6cfe1c..e5f6361 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.3.0-beta] - 2021-07-21 ### Added - Multiprocessing is here! The genetic optimization can now be run in parallel! Performances got improved by 65 % using 4 processes only. @@ -15,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The sidebar in the documentation a bit more useful. - Not having tqdm will cause an exception. +### Fixed + - Corrected the example, the genetic optimization is now properly fixed but +slower. + ### Removed - native support for PyGAD is no longer present. - ``evolutionnary_optimization`` (replaced by ``evolutionary_optimization``). diff --git a/docs/.buildinfo b/docs/.buildinfo index 899c5b8..cab4e07 100644 --- a/docs/.buildinfo +++ b/docs/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 8fec30c6b948d6cd396c40a29450d753 +config: 16ebb9102fed1af2bd38eae4d81548ce tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index 1d49c69..dd5b32f 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '0.2.0-alpha', + VERSION: '0.3.0', LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/api/dynamiclinkage.html b/docs/api/dynamiclinkage.html index 905433f..6f5f8aa 100644 --- a/docs/api/dynamiclinkage.html +++ b/docs/api/dynamiclinkage.html @@ -8,7 +8,7 @@ - dynamiclinkage — LeggedSnake 0.2.0-alpha documentation + dynamiclinkage — LeggedSnake 0.3.0 documentation diff --git a/docs/api/geneticoptimizer.html b/docs/api/geneticoptimizer.html index 5656214..8b42e49 100644 --- a/docs/api/geneticoptimizer.html +++ b/docs/api/geneticoptimizer.html @@ -8,7 +8,7 @@ - geneticoptimizer — LeggedSnake 0.2.0-alpha documentation + geneticoptimizer — LeggedSnake 0.3.0 documentation @@ -622,6 +622,22 @@

geneticoptimizer +
+leggedsnake.geneticoptimizer.save_population(file_path, population, verbose=False, data_descriptors=None)
+

Save the population to a json file.

+
+
Parameters
+
    +
  • file_path (str) –

  • +
  • population (list of dna) –

  • +
  • verbose (bool) –

  • +
  • data_descriptors (dict) – Any additional value you want to save for the current generation.

  • +
+
+
+
+
leggedsnake.geneticoptimizer.select_parents(pop, verbose=True)
diff --git a/docs/api/physicsengine.html b/docs/api/physicsengine.html index 542d9b2..384ffe9 100644 --- a/docs/api/physicsengine.html +++ b/docs/api/physicsengine.html @@ -8,7 +8,7 @@ - physicsengine — LeggedSnake 0.2.0-alpha documentation + physicsengine — LeggedSnake 0.3.0 documentation diff --git a/docs/api/utility.html b/docs/api/utility.html index d1465a9..3db501c 100644 --- a/docs/api/utility.html +++ b/docs/api/utility.html @@ -8,7 +8,7 @@ - utility — LeggedSnake 0.2.0-alpha documentation + utility — LeggedSnake 0.3.0 documentation diff --git a/docs/api/walker.html b/docs/api/walker.html index ec4ec24..14d5d53 100644 --- a/docs/api/walker.html +++ b/docs/api/walker.html @@ -8,7 +8,7 @@ - walker — LeggedSnake 0.2.0-alpha documentation + walker — LeggedSnake 0.3.0 documentation diff --git a/docs/changeloglink.html b/docs/changeloglink.html index 8db1805..2a873d8 100644 --- a/docs/changeloglink.html +++ b/docs/changeloglink.html @@ -8,7 +8,7 @@ - Changelog — LeggedSnake 0.2.0-alpha documentation + Changelog — LeggedSnake 0.3.0 documentation @@ -86,9 +86,11 @@