Skip to content

Commit 7a695dc

Browse files
committed
Update documentation
1 parent 9090b8e commit 7a695dc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

_sources/contributing/a_new_solver.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AbstractSolver:
3232

3333
i.e. the minimal ingredients required to instantiate a solver are a black-box function defined through `poli`, the initial design `x0`, and its evaluation `y0`.
3434

35-
**The only abstract method required** is a `solve(max_iter: int)`, in which you can implement all the complex logic required to optimize the objective function for `max_iter` iterations.
35+
**The only abstract method required** is a `solve`, in which you can implement all the complex logic required to optimize the objective function for `max_iter: int` iterations.
3636

3737
```python
3838
# poli_baselines/core/abstract_solver.py
@@ -198,3 +198,5 @@ your_solver = YourSolver(
198198
# Optimize for a given number of iterations.
199199
your_solver.solve(10)
200200
```
201+
202+
Once you know your optimizer works in this setting, you can **submit a pull-request** to `poli-baselines`.

contributing/a_new_solver.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ <h2>An abstract problem solver<a class="headerlink" href="#an-abstract-problem-s
748748
</pre></div>
749749
</div>
750750
<p>i.e. the minimal ingredients required to instantiate a solver are a black-box function defined through <code class="docutils literal notranslate"><span class="pre">poli</span></code>, the initial design <code class="docutils literal notranslate"><span class="pre">x0</span></code>, and its evaluation <code class="docutils literal notranslate"><span class="pre">y0</span></code>.</p>
751-
<p><strong>The only abstract method required</strong> is a <code class="docutils literal notranslate"><span class="pre">solve(max_iter:</span> <span class="pre">int)</span></code>, in which you can implement all the complex logic required to optimize the objective function for <code class="docutils literal notranslate"><span class="pre">max_iter</span></code> iterations.</p>
751+
<p><strong>The only abstract method required</strong> is a <code class="docutils literal notranslate"><span class="pre">solve</span></code>, in which you can implement all the complex logic required to optimize the objective function for <code class="docutils literal notranslate"><span class="pre">max_iter:</span> <span class="pre">int</span></code> iterations.</p>
752752
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># poli_baselines/core/abstract_solver.py</span>
753753
<span class="k">class</span> <span class="nc">AbstractSolver</span><span class="p">:</span>
754754
<span class="o">...</span>
@@ -898,6 +898,7 @@ <h2>Submitting a pull request<a class="headerlink" href="#submitting-a-pull-requ
898898
<span class="n">your_solver</span><span class="o">.</span><span class="n">solve</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span>
899899
</pre></div>
900900
</div>
901+
<p>Once you know your optimizer works in this setting, you can <strong>submit a pull-request</strong> to <code class="docutils literal notranslate"><span class="pre">poli-baselines</span></code>.</p>
901902
</section>
902903
</section>
903904

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)