Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes: add a config json, fix bug in Bayes plotting, adjust readme #31

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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