-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CyberAgentAILab/feat/setup
Update README
- Loading branch information
Showing
1 changed file
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# python-dte-adjustment | ||
## Overview | ||
|
||
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". | ||
|
||
## Installation | ||
|
||
1. **Install from PyPI** | ||
```sh | ||
pip install dte_adj | ||
``` | ||
|
||
2. **Install from source** | ||
|
||
```sh | ||
git clone https://github.com/CyberAgentAILab/python-dte-adjustment | ||
cd python-dte-adjustment | ||
pip install -e . | ||
``` | ||
|
||
## Development | ||
|
||
### Install Pipenv | ||
If you don't have `pipenv` installed, you can install it using `pip`: | ||
```sh | ||
pip install pipenv | ||
``` | ||
### Linting | ||
We use `ruff` for linting the code. To run the linter, use the following command: | ||
```sh | ||
pipenv run lint | ||
``` | ||
### Auto format | ||
We use `ruff` for formatting the code. To run the formatter, use the following command: | ||
```sh | ||
pipenv run format | ||
``` | ||
### Unit test | ||
We use `unittest` for testing the code. To run the unit tests, use the following command: | ||
```sh | ||
pipenv run unittest | ||
``` |