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

Modularize bmb.plots sub-package #674

Closed
wants to merge 27 commits into from

Conversation

GStechschulte
Copy link
Collaborator

@GStechschulte GStechschulte commented May 23, 2023

This PR modularizes the bmb.plots sub-package into four modules. The idea is to encapsulate the functions and creation / change of data into a single module based on that modules objective.

  • create_data.py: creates either adjusted predictions or comparisons data
  • plot_types.py: contains plot_numerical and plot_categorical to perform plotting based on the data type of the main covariate
  • plotting.py: contains functions to plot either adjusted predictions or comparisons
  • utils.py: contains commonly used functions for computing adjusted predictions or comparisons data. create_data.py uses a lot of functions from this module.

To Do:

  • only ready for review until plot_comparisons is ready
  • Incorporate changes in plot_cap default args. not working for categorical regression #673
  • Make def comparisons() accessible to the user?
  • Make a def predictions() function and make it accessible to user?
  • Make sure all test pass.
  • Make sure your code passes black.
  • Make sure your code passes pylint.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@tomicapretto
Copy link
Collaborator

This already looks quite impressive. Let me know if you want me to help with anything.

@GStechschulte
Copy link
Collaborator Author

Closing this draft PR since #684 refactored the plot_cap code. Therefore, there is no need for this PR.

@GStechschulte GStechschulte deleted the plotting-modules branch July 20, 2023 08:12
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

Successfully merging this pull request may close these issues.

2 participants