# Cluster DAGs as background knowledge for causal discovery


Install the requirements:
```
pip install -r requirements.txt
```

To be able to calculate SID in the metrics one needs to install R (version 4.3.1 is recommended). In addition, one needs to change ```os.environ[
    "R_HOME"
] = "C:\Program Files\R\R-4.3.1"``` in ```clustercausal/experiments/Evaluator.py``` to the path where R is installed.


Usage: 

For  custom graphs see Cluster_PC_example.ipynb. 

For simulation studies and evaluation see Cluster_PC_simulation_gridsearch.ipynb and Cluster_PC_simulation_mass_simulation.ipynb. 

Tests:    

```
pytest --cov
```
