From c04651effc9c22d3813b6e6f000453f21d8e77c9 Mon Sep 17 00:00:00 2001 From: ffelten Date: Mon, 30 Sep 2024 08:18:44 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Farama-F?= =?UTF-8?q?oundation/MO-Gymnasium@4b2cfa2972419d0845eff82a2002f0a35f6e8c07?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/.buildinfo | 2 +- main/_static/versioning/versioning_menu.html | 35 ++++++++++++++------ main/release_notes/index.html | 2 +- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/main/.buildinfo b/main/.buildinfo index baf16dc4..d1c8f84c 100644 --- a/main/.buildinfo +++ b/main/.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: e2c9f827adab2c24e1cff1454b6e034a +config: 2612d33d1ddf2aea2ec6d1750c22baa3 tags: d77d1c0d9ca2f4c8421862c7c5a0d620 diff --git a/main/_static/versioning/versioning_menu.html b/main/_static/versioning/versioning_menu.html index 1daf4cef..7a20036b 100644 --- a/main/_static/versioning/versioning_menu.html +++ b/main/_static/versioning/versioning_menu.html @@ -122,15 +122,30 @@ }); const sortVersions = (a, b) => { - // Alpha versions - if (a.includes("a")) return 1; - if (b.includes("a")) return -1; - if (a.replace("v", "") > b.replace("v", "")) - return -1 - else if (a.replace("v", "") < b.replace("v", "")) - return 1 - else - return 0 + const normVersionNames = (a) => { + return a.replace("v", "").split(""); + }; + const innerA = normVersionNames(a); + const innerB = normVersionNames(b); + + while (innerA.length && innerB.length) { + const charA = innerA.shift(); + const charB = innerB.shift(); + + if (charA === charB) continue; + else if (charA === ".") return 1; + else if (charB === ".") return -1; + else if (charA.match(/[0-9]/) && charB.match(/[0-9]/)) { + return Number(charB) - Number(charA); + } else { + if (charA < charB) return 1; + else if (charA > charB) return -1; + else return 0; + } + } + if (innerA < innerB) return 1; + else if (innerA > innerB) return -1; + else return 0; } if ((githubUser !== null && githubUser !== "") || (repo !== null && repo !== "")) { @@ -204,4 +219,4 @@ console.error("Invalid versioning configuration"); } - \ No newline at end of file + diff --git a/main/release_notes/index.html b/main/release_notes/index.html index a8d1ae79..6dca0abc 100644 --- a/main/release_notes/index.html +++ b/main/release_notes/index.html @@ -393,7 +393,7 @@

MO-Gymnasium 1.0.0 Release Notes

reward = forward_reward - ctrl_cost

With MORL, users have the flexibility to determine the compromises they desire based on their preferences for each objective. Consequently, the environments in MO-Gymnasium do not have predefined weights. Thus, MO-Gymnasium extends the capabilities of Gymnasium to the multi-objective setting, where the agents receives a vectorial reward.

For example, here is an illustration of the multiple policies learned by an MORL agent for the mo-halfcheetah domain, balancing between saving battery and speed:

- +

This release marks the first mature version of MO-Gymnasium within Farama, indicating that the API is stable, and we have achieved a high level of quality in this library.

API