Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4b2cfa2 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed Sep 30, 2024
1 parent 23d8683 commit c04651e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion main/.buildinfo
Original file line number Diff line number Diff line change
@@ -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
35 changes: 25 additions & 10 deletions main/_static/versioning/versioning_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== "")) {
Expand Down Expand Up @@ -204,4 +219,4 @@
console.error("Invalid versioning configuration");
}
</script>
</div>
</div>
2 changes: 1 addition & 1 deletion main/release_notes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ <h1>MO-Gymnasium 1.0.0 Release Notes</h1>
<span class="pl-s1">reward</span> <span class="pl-c1">=</span> <span class="pl-s1">forward_reward</span> <span class="pl-c1">-</span> <span class="pl-s1">ctrl_cost</span></pre></div>
<p>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 <a href="https://gymnasium.farama.org/" rel="nofollow">Gymnasium</a> to the multi-objective setting, where the agents receives a vectorial reward.</p>
<p>For example, here is an illustration of the multiple policies learned by an MORL agent for the <code>mo-halfcheetah</code> domain, balancing between saving battery and speed:</p>
<a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/11799929/245189948-10796cae-6f84-4690-8e17-d23f792c32c2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MDQ4NDAsIm5iZiI6MTcyNTcwNDU0MCwicGF0aCI6Ii8xMTc5OTkyOS8yNDUxODk5NDgtMTA3OTZjYWUtNmY4NC00NjkwLThlMTctZDIzZjc5MmMzMmMyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDEwMjIyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmNDZkZmY2ZjdiNDhhOWM2NTg3ODFiNTlmYTI5MzE0Mzk2M2E1YzJjZDA3OTRjMjdmOWFkOTU1YzE5ZWUyZWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0I1DTrADn3OCZ3PfeNYNAsRaO2LFryL27xqqwE6Fas0"><img src="https://private-user-images.githubusercontent.com/11799929/245189948-10796cae-6f84-4690-8e17-d23f792c32c2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MDQ4NDAsIm5iZiI6MTcyNTcwNDU0MCwicGF0aCI6Ii8xMTc5OTkyOS8yNDUxODk5NDgtMTA3OTZjYWUtNmY4NC00NjkwLThlMTctZDIzZjc5MmMzMmMyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDEwMjIyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmNDZkZmY2ZjdiNDhhOWM2NTg3ODFiNTlmYTI5MzE0Mzk2M2E1YzJjZDA3OTRjMjdmOWFkOTU1YzE5ZWUyZWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0I1DTrADn3OCZ3PfeNYNAsRaO2LFryL27xqqwE6Fas0" width="400" content-type-secured-asset="image/gif" style="max-width: 100%;"></a>
<a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/11799929/245189948-10796cae-6f84-4690-8e17-d23f792c32c2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc2ODQ2MTMsIm5iZiI6MTcyNzY4NDMxMywicGF0aCI6Ii8xMTc5OTkyOS8yNDUxODk5NDgtM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3YjJjMjRlMWM5ZTE0MDQ2YTYwZTc0ZjE1ZGQzN2NjYmViNTBhZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4sUdfgYxyyKHDsSZujzvUhYPSn0V_F8YiXcqnHCN4Ew" width="400" content-type-secured-asset="image/gif" style="max-width: 100%;"></a>
<p>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.</p>
<h2>API</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import gymnasium as gym
Expand Down

0 comments on commit c04651e

Please sign in to comment.