-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 319502c
Showing
289 changed files
with
49,198 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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: 32958d1124330220f576214f31cfb0af | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>genetic_algorithm — BSK-RL 0.0.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=8b8c5be3" /> | ||
|
||
|
||
<!--[if lt IE 9]> | ||
<script src="../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script src="../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../_static/documentation_options.js?v=7026087e"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../search.html" /> | ||
<link rel="next" title="mcts" href="mcts.html" /> | ||
<link rel="prev" title="agents" href="index.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" style="background: #CFB87C" > | ||
|
||
|
||
|
||
<a href="../../index.html" class="icon icon-home"> | ||
BSK-RL | ||
<img src="../../_static/Basilisk-Logo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<ul class="current"> | ||
<li class="toctree-l1"><a class="reference internal" href="../../install.html">Installation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../Examples/index.html">Examples</a></li> | ||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">API Reference</a><ul class="current"> | ||
<li class="toctree-l2 current"><a class="reference internal" href="index.html">agents</a><ul class="current"> | ||
<li class="toctree-l3 current"><a class="current reference internal" href="#">genetic_algorithm</a><ul> | ||
<li class="toctree-l4"><a class="reference internal" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem"><code class="docutils literal notranslate"><span class="pre">env2opt_problem</span></code></a><ul> | ||
<li class="toctree-l5"><a class="reference internal" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem.__init__"><code class="docutils literal notranslate"><span class="pre">env2opt_problem.__init__()</span></code></a></li> | ||
<li class="toctree-l5"><a class="reference internal" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem.evaluate"><code class="docutils literal notranslate"><span class="pre">env2opt_problem.evaluate()</span></code></a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l4"><a class="reference internal" href="#bsk_rl.agents.genetic_algorithm.mutUniformIntList"><code class="docutils literal notranslate"><span class="pre">mutUniformIntList()</span></code></a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l3"><a class="reference internal" href="mcts.html">mcts</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="state_machine.html">state_machine</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l2"><a class="reference internal" href="../envs/index.html">envs</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="../training/index.html">training</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="../utilities/index.html">utilities</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../publications.html">Publications</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../citation.html">Citation</a></li> | ||
<li class="toctree-l1"><a class="reference external" href="https://github.com/AVSLab/bsk_rl/">GitHub</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" style="background: #CFB87C" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../index.html">BSK-RL</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../index.html">API Reference</a></li> | ||
<li class="breadcrumb-item"><a href="index.html">agents</a></li> | ||
<li class="breadcrumb-item active">genetic_algorithm</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
<a href="../../_sources/API Reference/agents/genetic_algorithm.rst.txt" rel="nofollow"> View page source</a> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<section id="genetic-algorithm"> | ||
<span id="bsk-rl-agents-genetic-algorithm"></span><h1>genetic_algorithm<a class="headerlink" href="#genetic-algorithm" title="Link to this heading"></a></h1> | ||
<p><code class="docutils literal notranslate"><span class="pre">bsk_rl.agents.genetic_algorithm</span></code></p> | ||
<div class="toctree-wrapper compound"> | ||
</div> | ||
<dl class="py class" id="module-bsk_rl.agents.genetic_algorithm"> | ||
<dt class="sig sig-object py" id="bsk_rl.agents.genetic_algorithm.env2opt_problem"> | ||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">env2opt_problem</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">env_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">initial_conditions</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/bsk_rl/agents/genetic_algorithm.html#env2opt_problem"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem" title="Link to this definition"></a></dt> | ||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> | ||
<p>This class provides a generic interface for recasting a gymnasium environment as a | ||
total reward maximization problem.</p> | ||
<dl class="py method"> | ||
<dt class="sig sig-object py" id="bsk_rl.agents.genetic_algorithm.env2opt_problem.__init__"> | ||
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">env_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">initial_conditions</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/bsk_rl/agents/genetic_algorithm.html#env2opt_problem.__init__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem.__init__" title="Link to this definition"></a></dt> | ||
<dd></dd></dl> | ||
|
||
<dl class="py method"> | ||
<dt class="sig sig-object py" id="bsk_rl.agents.genetic_algorithm.env2opt_problem.evaluate"> | ||
<span class="sig-name descname"><span class="pre">evaluate</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">action_set</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/bsk_rl/agents/genetic_algorithm.html#env2opt_problem.evaluate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#bsk_rl.agents.genetic_algorithm.env2opt_problem.evaluate" title="Link to this definition"></a></dt> | ||
<dd><p>Evaluates a full run of the environment given a list of actions.</p> | ||
</dd></dl> | ||
|
||
</dd></dl> | ||
|
||
<dl class="py function"> | ||
<dt class="sig sig-object py" id="bsk_rl.agents.genetic_algorithm.mutUniformIntList"> | ||
<span class="sig-name descname"><span class="pre">mutUniformIntList</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">individual</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">num_samples</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">low</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">up</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">indpb</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.3</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/bsk_rl/agents/genetic_algorithm.html#mutUniformIntList"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#bsk_rl.agents.genetic_algorithm.mutUniformIntList" title="Link to this definition"></a></dt> | ||
<dd><p>This function is designed to mutate a list of integers, rather than a single | ||
integer. | ||
:param individual: The individual to be mutated | ||
:param num_samples: The number of samples to be mutated | ||
:param low: The lower bound for the mutation | ||
:param up: The upper bound for the mutation | ||
:param indpb: The probability of mutation | ||
:returns: A list of a single individual.</p> | ||
</dd></dl> | ||
|
||
</section> | ||
|
||
|
||
</div> | ||
</div> | ||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> | ||
<a href="index.html" class="btn btn-neutral float-left" title="agents" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> | ||
<a href="mcts.html" class="btn btn-neutral float-right" title="mcts" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> | ||
</div> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2024, Autonomous Vehicle Systems (AVS) Laboratory.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>agents — BSK-RL 0.0.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=8b8c5be3" /> | ||
|
||
|
||
<!--[if lt IE 9]> | ||
<script src="../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script src="../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../_static/documentation_options.js?v=7026087e"></script> | ||
<script src="../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../search.html" /> | ||
<link rel="next" title="genetic_algorithm" href="genetic_algorithm.html" /> | ||
<link rel="prev" title="API Reference" href="../index.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" style="background: #CFB87C" > | ||
|
||
|
||
|
||
<a href="../../index.html" class="icon icon-home"> | ||
BSK-RL | ||
<img src="../../_static/Basilisk-Logo.png" class="logo" alt="Logo"/> | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<ul class="current"> | ||
<li class="toctree-l1"><a class="reference internal" href="../../install.html">Installation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../Examples/index.html">Examples</a></li> | ||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">API Reference</a><ul class="current"> | ||
<li class="toctree-l2 current"><a class="current reference internal" href="#">agents</a><ul> | ||
<li class="toctree-l3"><a class="reference internal" href="genetic_algorithm.html">genetic_algorithm</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="mcts.html">mcts</a></li> | ||
<li class="toctree-l3"><a class="reference internal" href="state_machine.html">state_machine</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l2"><a class="reference internal" href="../envs/index.html">envs</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="../training/index.html">training</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="../utilities/index.html">utilities</a></li> | ||
</ul> | ||
</li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../publications.html">Publications</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../citation.html">Citation</a></li> | ||
<li class="toctree-l1"><a class="reference external" href="https://github.com/AVSLab/bsk_rl/">GitHub</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" style="background: #CFB87C" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../index.html">BSK-RL</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../index.html">API Reference</a></li> | ||
<li class="breadcrumb-item active">agents</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
<a href="../../_sources/API Reference/agents/index.rst.txt" rel="nofollow"> View page source</a> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<section id="agents"> | ||
<span id="bsk-rl-agents"></span><h1>agents<a class="headerlink" href="#agents" title="Link to this heading"></a></h1> | ||
<p><code class="docutils literal notranslate"><span class="pre">bsk_rl.agents</span></code></p> | ||
<div class="toctree-wrapper compound" id="module-bsk_rl.agents"> | ||
<p class="caption" role="heading"><span class="caption-text">Files:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="genetic_algorithm.html">genetic_algorithm</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="mcts.html">mcts</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="state_machine.html">state_machine</a></li> | ||
</ul> | ||
</div> | ||
<div class="toctree-wrapper compound"> | ||
</div> | ||
</section> | ||
|
||
|
||
</div> | ||
</div> | ||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> | ||
<a href="../index.html" class="btn btn-neutral float-left" title="API Reference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> | ||
<a href="genetic_algorithm.html" class="btn btn-neutral float-right" title="genetic_algorithm" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> | ||
</div> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2024, Autonomous Vehicle Systems (AVS) Laboratory.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.