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

IndexError for example experiment #5

Open
popcsev opened this issue Sep 19, 2023 · 0 comments
Open

IndexError for example experiment #5

popcsev opened this issue Sep 19, 2023 · 0 comments

Comments

@popcsev
Copy link

popcsev commented Sep 19, 2023

Bug Report for pyAB Library


Describe the bug

The pyAB library's function conduct_experiment throws an IndexError when trying to generate uplift distribution plots. The error message states, "List index out of range."


To Reproduce

Steps to reproduce the behavior on Google Colab:

  1. Navigate to Google Colab Notebook.
  2. Run all cells leading to the conduct_experiment function call.
  3. Execute the cell containing:
    ad_experiment_bayesian.conduct_experiment(success_null=100, trials_null=1000,
                                              success_alt=125, trials_alt=1000,
                                              uplift_method='uplift_ratio', num_simulations=1000)
  4. Observe the IndexError in the output.

Screenshot 2023-09-19 at 12 52 42


Expected Behavior

Expected the conduct_experiment function to complete successfully and display the uplift distribution plots without errors.


Desktop:

  • OS: Any (Reproducible on Google Colab)

Additional Context

  • The library also throws a FutureWarning regarding the depreciation of the shade parameter in favor of fill in seaborn.
  • The error emanates from the line: kde_x, kde_y = ax.lines[0].get_data().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant