Skip to content

Commit

Permalink
Merge pull request #31 from transferwise/minor_fixes
Browse files Browse the repository at this point in the history
Minor fixes: add a config json, fix bug in Bayes plotting, adjust readme
  • Loading branch information
EgorKraevTransferwise authored Nov 26, 2024
2 parents 8b39f99 + e8eb32d commit 463c31d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ Then navigate to the folder `./tw_experimentation/streamlit`.

Now run the command `streamlit run Main.py` and the app should open in your browser.

Then you can use or test dataset from data/test_data.csv
For testing, you can load the test dataset from `data/test_data.csv`. You should either set the fields as shown in the
screenshot below; or just click on the "Load configuration from json" section and load the whole
configuration from the file `data/test_config.json`.

![plot](https://github.com/transferwise/tw-experimentation/blob/main/docs/images/data_loading_streamlit.png?raw=True)
![plot](https://github.com/transferwise/tw-experimentation/blob/main/docs/images/evaluation_streamlit.png?raw=True)
Expand Down
1 change: 1 addition & 0 deletions data/test_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"exp_name": "", "is_experiment": true, "variant_name": "T", "timestamp": "trigger_dates", "is_dynamic_experiment": true, "pre_experiment": ["pre_exp_revenue"], "segments": ["segment_1", "segment_2", "segment_3", "currency", "country_of_origin"], "outcomes": ["num_actions", "revenue", "conversion"], "remove_outliers": true}
2 changes: 1 addition & 1 deletion tw_experimentation/bayes/bayes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def fig_posterior_cdf_by_target(self, target: str, facet_rows_variant=False):

fig = self.fig_posterior_difference_cdf(
sample_per_variant,
posterior_hdi_per_variant,
# posterior_hdi_per_variant,
facet_rows_variant=facet_rows_variant,
)
fig.update_layout(
Expand Down

0 comments on commit 463c31d

Please sign in to comment.