Skip to content

Commit

Permalink
Update README example (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfelt authored Sep 13, 2022
1 parent 974e614 commit be15385
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Below, we show how to use the Nelder-Mead strategy to optimise a benchmark repr
```python
# Import summit
from summit.benchmarks import SnarBenchmark
from summit.strategies import NelderMead, MultitoSingleObjective
from summit.strategies import SOBO, MultitoSingleObjective
from summit.run import Runner

# Instantiate the benchmark
Expand All @@ -53,15 +53,23 @@ transform = MultitoSingleObjective(
)

# Set up the strategy, passing in the optimisation domain and transform
nm = NelderMead(exp.domain, transform=transform)
nm = SOBO(exp.domain, transform=transform)

# Use the runner to run closed loop experiments
r = Runner(
strategy=nm, experiment=exp,max_iterations=50
)
r.run()

# Make a pareto plot comparing both objectives
r.experiment.pareto_plot(ax=ax)
```

<p align="center">
<img src="static/pareto.png", alt='Documentation Status' />
</p>


## Documentation

The documentation for summit can be found [here](https://gosummit.readthedocs.io/en/latest/index.html).
Expand Down
Binary file added static/pareto.png
Loading
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 be15385

Please sign in to comment.