Skip to content

Commit

Permalink
Updt image placement and sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed Nov 18, 2023
1 parent 979063d commit f34ee15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/blog/2023/cma-es.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ z = [f(x, y) for x in xy, y in xy]

This gives us the following surface,

<div align="center">
```plotly
{"file_path": "./blog/2023/CMAES/surface-truth.json"}
```
</div>

A nice parabolic function with a global minimum at $(0,0)$. Now let's add some noise to the function, we do this with the [Distributions.jl](https://github.com/JuliaStats/Distributions.jl) package in Julia. Let's sample from a normal distribution with a mean of zero and a standard deviation of 5. The updated function is given by $f(\mathbf{x}) = \mathbf{x}^2 + \varepsilon$, where $\varepsilon \sim \mathcal{N}(0, 5)$. The updated Julia form is then

Expand Down
5 changes: 4 additions & 1 deletion docs/blog/2023/github-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ description: "Configure a self-hosted Apple M2 GitHub runner to validate the dep

In this post, I take a look at the process of creating a self-hosted ARM-based GitHub runner for CI/CD. This runner is currently being used for the development of PyBaMM and PyBOP.

<img class="featured" src="/images/2023/apple-runner.png" alt="Featured Banner" />
<!-- <img class="featured" src="/images/2023/apple-runner.png" alt="Featured Banner" /> -->
<div style="text-align:center;">
<img class="featured" src="/images/2023/apple-runner.png" alt="Featured Banner" style="width: 60%;" />
</div>

**TL;DR**: Configure a self-hosted Apple M2 GitHub runner to validate the deployment of your repositories on Apple-based ARM hardware. An [example](#example-workflow) workflow is presented from PyBaMM's daily testing workflow. This example is over 2X faster than the GitHub-hosted hardware.

Expand Down

0 comments on commit f34ee15

Please sign in to comment.