Skip to content

Commit

Permalink
Merge pull request #52 from hstko/release
Browse files Browse the repository at this point in the history
Minor fix of Release v0.1.0
  • Loading branch information
hiro-o918 authored Nov 6, 2018
2 parents ea89cdd + aa806fa commit 33a2b83
Show file tree
Hide file tree
Showing 596 changed files with 46,524 additions and 349 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Installation
-------------
To install OnegPy, follow the below.

install OnegPy using pip
Install onegpy using pip
~~~~~~~~~~~~~~~~~~~~~~~~~
[W.I.P]

install OnegPy from the GitHub
Install onegpy from the GitHub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::
Expand Down Expand Up @@ -48,5 +48,5 @@ Requirements

Examples
---------
Some examples are located in `examples <https://github.com/onegpy-team/onegpy/examples>`_.
Some examples are located in `examples <https://github.com/onegpy-team/onegpy/tree/master/examples>`_.

Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/build/doctrees/reference/base.mlps.doctree
Binary file not shown.
Binary file added docs/build/doctrees/reference/base.sgp.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/reference/index.doctree
Binary file not shown.
Binary file added docs/build/doctrees/reference/viewers.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 5 additions & 2 deletions docs/build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@



<!-- Local TOC -->
<div class="local-toc"></div>
<p class="caption"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../reference/index.html">Reference</a></li>
</ul>



</div>
Expand Down
354 changes: 354 additions & 0 deletions docs/build/html/_modules/onegpy/base/mlps.html

Large diffs are not rendered by default.

247 changes: 247 additions & 0 deletions docs/build/html/_modules/onegpy/base/sgp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>onegpy.base.sgp &mdash; OnegPy 0.1.0 documentation</title>















<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />


<script src="../../../_static/js/modernizr.min.js"></script>

</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">



<a href="../../../index.html" class="icon icon-home"> OnegPy



</a>




<div class="version">
0.1
</div>




<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="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="main navigation">






<p class="caption"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../reference/index.html">Reference</a></li>
</ul>



</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">


<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">OnegPy</a>

</nav>


<div class="wy-nav-content">

<div class="rst-content">

















<div role="navigation" aria-label="breadcrumbs navigation">

<ul class="wy-breadcrumbs">

<li><a href="../../../index.html">Docs</a> &raquo;</li>

<li><a href="../../index.html">Module code</a> &raquo;</li>

<li>onegpy.base.sgp</li>


<li class="wy-breadcrumbs-aside">

</li>

</ul>


<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for onegpy.base.sgp</h1><div class="highlight"><pre>
<span></span><span class="ch">#!/usr/bin/env python</span>
<span class="c1"># -*- coding: utf-8 -*-</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">GP Library</span>

<span class="sd">Copyright (c) 2018, Taku Hasegawa.</span>
<span class="sd">License: MIT (see LICENSE for details)</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="n">__author__</span> <span class="o">=</span> <span class="s1">&#39;Taku Hasegawa, &#39;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s1">&#39;0.1.0-beta&#39;</span>
<span class="n">__license__</span> <span class="o">=</span> <span class="s1">&#39;MIT&#39;</span>


<div class="viewcode-block" id="PopulationGP"><a class="viewcode-back" href="../../../reference/generated/onegpy.base.sgp.PopulationGP.html#onegpy.base.sgp.PopulationGP">[docs]</a><span class="k">class</span> <span class="nc">PopulationGP</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> base class of population based GP</span>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="PopulationGP.__init__"><a class="viewcode-back" href="../../../reference/generated/onegpy.base.sgp.PopulationGP.html#onegpy.base.sgp.PopulationGP.__init__">[docs]</a> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">initializer</span><span class="p">,</span> <span class="n">sequential</span><span class="p">,</span> <span class="n">observer</span><span class="p">,</span> <span class="n">terminal_condition</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="sd"> :param initializer: population initializer object. initializer of population</span>
<span class="sd"> :param sequential: sequential object. genetic operators</span>
<span class="sd"> :param observer: Observer object.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="bp">self</span><span class="o">.</span><span class="n">initializer</span> <span class="o">=</span> <span class="n">initializer</span>
<span class="bp">self</span><span class="o">.</span><span class="n">sequential</span> <span class="o">=</span> <span class="n">sequential</span>
<span class="bp">self</span><span class="o">.</span><span class="n">observer</span> <span class="o">=</span> <span class="n">observer</span>
<span class="bp">self</span><span class="o">.</span><span class="n">terminal_condition</span> <span class="o">=</span> <span class="n">terminal_condition</span></div>

<span class="k">def</span> <span class="nf">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> optimize a target problem.</span>
<span class="sd"> :return:</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">population</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">initializer</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">observer</span><span class="o">.</span><span class="n">begin</span><span class="p">()</span>
<span class="n">gene</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">while</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">terminal_condition</span><span class="p">():</span>
<span class="n">population</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">sequential</span><span class="p">(</span><span class="n">population</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">observer</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">gene</span><span class="p">,</span> <span class="n">population</span><span class="p">)</span>
<span class="n">gene</span> <span class="o">+=</span> <span class="mi">1</span>

<span class="bp">self</span><span class="o">.</span><span class="n">observer</span><span class="o">.</span><span class="n">end</span><span class="p">(</span><span class="n">population</span><span class="p">)</span>

<span class="k">return</span> <span class="n">population</span></div>
</pre></div>

</div>

</div>
<footer>


<hr/>

<div role="contentinfo">
<p>
&copy; Copyright 2018, Taku Hasegawa, Hironori Yamamoto, Yoshiyuki Tanaka

</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.

</footer>

</div>
</div>

</section>

</div>







<script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
<script type="text/javascript" src="../../../_static/jquery.js"></script>
<script type="text/javascript" src="../../../_static/underscore.js"></script>
<script type="text/javascript" src="../../../_static/doctools.js"></script>
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>




<script type="text/javascript" src="../../../_static/js/theme.js"></script>

<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 33a2b83

Please sign in to comment.