You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for considering contributing to this project! Here are some guidelines to help you get started.
4
+
5
+
## How can I contribute to this project?
6
+
### Reporting Bugs
7
+
If you find a bug, please report it by opening an issue in the issue tracker. Provide as much detail as possible to help us understand and reproduce the issue:
8
+
- A clear and descriptive title.
9
+
- A detailed description of the problem.
10
+
- Steps to reproduce the issue.
11
+
- Any error messages or screenshots.
12
+
13
+
### Suggesting Enhancements
14
+
We welcome suggestions for improvements! To suggest an enhancement:
15
+
- Check the issue tracker to see if someone else has already suggested it.
16
+
- If not, open a new issue and describe your idea clearly.
17
+
- Explain why you believe the enhancement would be beneficial.
18
+
19
+
### Pull Requests
20
+
Pull requests are welcome! If you plan to make significant changes, please open an issue first to discuss your idea. This helps us ensure that your contribution fits with the project's direction. Follow these steps for a smooth pull request process:
21
+
22
+
- Fork the repository.
23
+
- Clone your fork to your local machine.
24
+
- Create a new branch: `git checkout -b my-feature-branch`.
25
+
- Make your changes.
26
+
- Commit your changes: `git commit -m 'Add some feature'.
27
+
- Push to the branch: `git push origin my-feature-branch`.
28
+
- Open a pull request in the original repository.
29
+
30
+
## Development
31
+
Here are the basic commands you can use to develop this package.
32
+
33
+
### Install Pipenv
34
+
If you don't have `pipenv` installed, you can install it using `pip`:
35
+
36
+
```sh
37
+
pip install pipenv
38
+
```
39
+
40
+
### Linting
41
+
We use `ruff` for linting the code. To run the linter, use the following command:
42
+
```sh
43
+
pipenv run lint
44
+
```
45
+
46
+
### Auto format
47
+
We use `ruff` for formatting the code. To run the formatter, use the following command:
48
+
```sh
49
+
pipenv run format
50
+
```
51
+
52
+
### Unit test
53
+
We use `unittest` for testing the code. To run the unit tests, use the following command:
This an a Python package for building the regression adjusted distribution function estimator proposed in "Estimating Distributional Treatment Effects in Randomized Experiments: Machine Learning for Variance Reduction".
3
+
This a Python package for building the regression adjusted distribution function estimator proposed in "Estimating Distributional Treatment Effects in Randomized Experiments: Machine Learning for Variance Reduction". For the details of this package, see [the documentation](https://cyberagentailab.github.io/python-dte-adjustment/).
4
4
5
5
## Installation
6
6
@@ -17,29 +17,15 @@ This an a Python package for building the regression adjusted distribution funct
17
17
pip install -e .
18
18
```
19
19
20
+
## Basic Usage
21
+
Examples of how to use this package are available in [this Get-started Guide](https://cyberagentailab.github.io/python-dte-adjustment/get_started.html).
22
+
20
23
## Development
24
+
We welcome contributions to the project! Please review our [Contribution Guide](CONTRIBUTING.md) for details on how to get started.
25
+
26
+
## License
27
+
28
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
21
29
22
-
### Install Pipenv
23
-
If you don't have `pipenv` installed, you can install it using `pip`:
24
-
25
-
```sh
26
-
pip install pipenv
27
-
```
28
-
29
-
### Linting
30
-
We use `ruff` for linting the code. To run the linter, use the following command:
31
-
```sh
32
-
pipenv run lint
33
-
```
34
-
35
-
### Auto format
36
-
We use `ruff` for formatting the code. To run the formatter, use the following command:
37
-
```sh
38
-
pipenv run format
39
-
```
40
-
41
-
### Unit test
42
-
We use `unittest` for testing the code. To run the unit tests, use the following command:
Regarding how to contribute to this package, please refer to https://github.com/CyberAgentAILab/python-dte-adjustment/CONTRIBUTING.md for more details.
A convenience function is available to visualize distribution effects. This method can be used for other distribution parameters including Probability Treatment Effect (PTE) and Quantile Treatment Effect (QTE).
69
70
70
71
.. code-block:: python
71
72
72
-
plot(np.sort(Y), dte, lower_bound, upper_bound, title="DTE of simple estimator")
73
+
plot(locations, dte, lower_bound, upper_bound, title="DTE of simple estimator")
73
74
74
75
.. image:: _static/dte_empirical.png
75
76
:alt:DTE of empirical estimator
@@ -92,8 +93,8 @@ DTE can be computed and visualized in the following code.
0 commit comments