Skip to content

Commit

Permalink
Changed method of random number generation, although still not gettin…
Browse files Browse the repository at this point in the history
…g consistent results
  • Loading branch information
amyheather committed May 23, 2024
1 parent f1974f8 commit a12ccc5
Show file tree
Hide file tree
Showing 13 changed files with 18,069 additions and 65 deletions.
4 changes: 2 additions & 2 deletions evaluation/posts/2024_05_22/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ categories: [setup, read, scope]

::: {.callout-note}

## Total time elapsed
## Time elapsed

1h 13m (3%)
1h 13m today (total: 3%)

:::

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 19 additions & 4 deletions evaluation/posts/2024_05_23/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ categories: [read, reproduce]

::: {.callout-note}

## Total time elapsed
## Time elapsed

TBC
3h 23m today (total: 11.5%)

:::

Expand Down Expand Up @@ -275,7 +275,7 @@ However, this definitely has **not** fixed the issue! Still varying - and I woul

<mark>test! idea is to check that you are getting the same results between runs</mark>

### 15.23- Reproduction
### 15.23-16.35 Reproduction

::: {.callout-tip}
## Random seeds
Expand Down Expand Up @@ -306,6 +306,20 @@ I thought best option is to switch to using it how it is uses in the [treat-sim
So next things I did -

* Delete the NormalParams and UniformParams classes as not used - checked if still run fine which it did.
* Modified the Normal and Uniform so the random number sampling matches up with [treat-sim model docs](https://pythonhealthdatascience.github.io/stars-simpy-example-docs/content/02_model_code/04_model.html#distribution-classes), and Scenario class so it's similar (class itself is just set up a little differently)
* In .ipynb, removed the parameters from Scenario() that were identical to those when Scenario is created (except seed setting)

Then ran it twice again (this time just with 5 replications). Not matching up yet -

Run 1 with new random method:

<img src="displaced_base_3_month_newclass1.png" width="500" />

Run 2:

<img src="displaced_base_3_month_newclass2.png" width="500" />

<mark>Updating documentation after I've made changes to it - not priority during reproduction unless feel important to make obvious, but priority during the research compendium stage, to make sure documetnation is all as it should be</mark> or just do as go along...

## Timings

Expand All @@ -324,7 +338,8 @@ times = [
('12.10', '12.16'),
('12.19', '12.29'),
('13.26', '13.52'),
('14.19', '15.12')]
('14.19', '15.12'),
('15.23', '16.35')]
# --------------------------------------------------------------
FMT = '%H.%M'
Expand Down
30 changes: 15 additions & 15 deletions reproduction/example.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit a12ccc5

Please sign in to comment.