Skip to content

Commit

Permalink
updated sphinx notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
claesenm committed Jul 9, 2015
1 parent db0effe commit 7b6a151
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/notebooks/notebooks/basic-parabola.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ offsets.
xoff = random.random()
yoff = random.random()
def f(x, y):
return (x - xoff)**2 + (y - yoff - 5)**2
return (x - xoff)**2 + (y - yoff)**2
return f
We start with the necessary imports.

.. code:: python
%matplotlib inline # comment this line when running the notebook yourself
# comment this line when running the notebook yourself
%matplotlib inline
import math
import optunity
import random
Expand Down Expand Up @@ -84,6 +86,11 @@ along with contours of the objective function.
plt.axis('equal')
plt.legend(solvers)
plt.show()
.. image:: basic-parabola_files/output_12_0.png


Now lets see the performance of the solvers across in 100 repeated
experiments. We will do 100 experiments for each solver and then report
the resulting statistics. This may take a while to run.
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b6a151

Please sign in to comment.