uber / causalml

Uplift modeling and causal inference with machine learning algorithms
Other
4.87k stars 756 forks source link

Add notebook examples to docs #697

Closed jeongyoonlee closed 8 months ago

jeongyoonlee commented 8 months ago

Proposed changes

This PR adds example Jupyter notebooks to the documentation website at https://causalml.readthedocs.io/.

Types of changes

What types of changes does your code introduce to CausalML? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

This PR moves the examples folder from the project root to docs/ because the nbsphinx extension cannot render notebook files outside the docs/ folder. There is another extension, nbsphinx-link, that enables rendering notebooks outside docs, but it requires creating one .nblink for each notebook file to be rendered. Also the nbsphinx-link project has been inactive in the past 4 years.

In short, I found moving the entire examples folder is the simplest solution.