Skip to content

Commit 1cbb1e1

Browse files
thomaspinderThomas Pinder
andauthored
Add installation (#12)
Co-authored-by: Thomas Pinder <[email protected]>
1 parent fc7503a commit 1cbb1e1

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Causal Validation
22

3-
This package provides functionality to define your own causal data generation process and then simulate data from the process. Within the package, there is functionality to include complex components to your process, such as periodic and temporal trends, and all of these operations are fully composable with one another.
3+
This package provides functionality to define your own causal data generation process
4+
and then simulate data from the process. Within the package, there is functionality to
5+
include complex components to your process, such as periodic and temporal trends, and
6+
all of these operations are fully composable with one another.
47

58
A short example is given below
69
```python
@@ -38,9 +41,12 @@ plot(inflated_data)
3841

3942
## Examples
4043

41-
To supplement the above example, we have two more detailed notebooks which exhaustively present and explain the functionalty in this package, along with how the generated data may be integrated with [AZCausal](https://github.com/amazon-science/azcausal).
42-
1. [Basic notebook](): We here show the full range of available functions for data generation
43-
2. [AZCausal notebook](): We here show how the generated data may be used within an AZCausal model.
44+
To supplement the above example, we have two more detailed notebooks which exhaustively
45+
present and explain the functionalty in this package, along with how the generated data
46+
may be integrated with [AZCausal](https://github.com/amazon-science/azcausal).
47+
1. [Data Synthesis](https://amazon-science.github.io/causal-validation/examples/basic/): We here show the full range of available functions for data generation.
48+
2. [Placebo testing](https://amazon-science.github.io/causal-validation/examples/placebo_test/): Validate your model(s) using placebo tests.
49+
3. [AZCausal notebook](https://amazon-science.github.io/causal-validation/examples/azcausal/): We here show how the generated data may be used within an AZCausal model.
4450

4551
## Installation
4652

docs/installation.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Installation
2+
3+
## Stable version
4+
5+
The latest stable release of `causal-validation` can be installed via `pip`:
6+
7+
```bash
8+
pip install causal-validation
9+
```
10+
11+
!!! note "Check your installation"
12+
We recommend you check your installation version:
13+
```
14+
python -c 'import causal_validation; print(causal_validation.__version__)'
15+
```
16+
17+
## Development version
18+
19+
!!! warning
20+
This version is possibly unstable and may contain bugs.
21+
22+
The latest development version of `causal_validation` can be installed via running following:
23+
24+
```bash
25+
git clone [email protected]:amazon-science/causal-validation.git
26+
cd causal-validation
27+
hatch shell create
28+
```
29+
30+
!!! tip
31+
We advise you create virtual environment before installing:
32+
33+
```bash
34+
conda create -n causal-validation python=3.11.0
35+
conda activate causal-validation
36+
```
37+
38+
and recommend you check your installation passes the supplied unit tests:
39+
40+
```bash
41+
hatch run dev:test
42+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ repo_name: causal-validation
55

66
nav:
77
- Home: index.md
8+
- Installation: installation.md
89
- Examples:
910
- Data Synthesis: examples/basic.ipynb
1011
- Placebo Testing: examples/placebo_test.ipynb

0 commit comments

Comments
 (0)