Skip to content

Commit cb34ab2

Browse files
committed
update calm readme
1 parent 9fc1011 commit cb34ab2

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

effector/calm/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Interpretability-by-Design with Accurate Locally Additive Models and Conditional Feature Effects
22

3-
This repository contains the official code for the paper titled **Interpretability-by-Design with Accurate Locally Additive Models and Conditional Feature Effects**.
3+
This repository contains the official code for the paper titled **Interpretability-by-Design with Accurate Locally Additive Models and Conditional Feature Effects** implemented as a submodule of Effector.
44

55
## Table of Contents
66
- [Package Installation](#package-installation)
@@ -15,7 +15,7 @@ This repository contains the official code for the paper titled **Interpretabili
1515

1616
## Package Installation
1717

18-
To install the CALM package and its dependencies, follow the steps below.
18+
To install the CALM package (as effector module) and its dependencies, follow the steps below.
1919

2020

2121
### Set Up a Python Environment
@@ -25,17 +25,14 @@ You can use either **Python's built-in `venv`** or **`conda`**.
2525
#### Option A: Using `venv` (recommended for most users)
2626

2727
```bash
28-
# From the root of the project (e.g., CALM/)
29-
cd code
30-
3128
# Create and activate virtual environment
3229
python3.10 -m venv calm-env
3330
source calm-env/bin/activate # On Linux/Mac
3431
# .\calm-env\Scripts\activate # On Windows
3532
```
3633

3734
#### Option B: Using Conda
38-
```
35+
```bash
3936
# Create a new conda environment with Python = 3.10
4037
conda create -n calm-env python=3.10 -y
4138
conda activate calm-env
@@ -62,6 +59,7 @@ Use TensorFlow 2.18.0 for compatibility:
6259
To install the package normally (without editing the source code):
6360

6461
```shell
62+
# From the repo root (the folder that contains pyproject.toml)
6563
pip install 'effector[calm,windows]'
6664
```
6765

@@ -71,16 +69,20 @@ pip install 'effector[calm,windows]'
7169
If you plan to modify the CALM source code:
7270

7371
```shell
72+
# From the repo root (the folder that contains pyproject.toml)
7473
pip install -e '.[calm,windows]'
7574
```
7675

76+
Run this from the repo root (the folder that contains pyproject.toml)
77+
7778
### 🐧 Linux / 🍎 macOS users
7879
Use TensorFlow 2.19.0 to match the versions used in the paper:
7980

8081
#### Normal Installation
8182
To install the package normally (without editing the source code):
8283

8384
```shell
85+
# From the repo root (the folder that contains pyproject.toml)
8486
pip install 'effector[calm,linux-mac]'
8587
```
8688

@@ -89,6 +91,7 @@ pip install 'effector[calm,linux-mac]'
8991
If you plan to modify the CALM source code:
9092

9193
```shell
94+
# From the repo root (the folder that contains pyproject.toml)
9295
pip install -e '.[calm,linux-mac]'
9396
```
9497

@@ -112,11 +115,11 @@ The default configuration of the CALM method is:
112115
All predictive results are obtained using standard 5-fold cross-validation.
113116

114117
### Synthetic example
115-
- Notebook: `effector/calm-experiments/synthetic_example.ipynb`
118+
- Notebook: `calm-experiments/synthetic_example.ipynb`
116119
- Description: Comparison of CALM against EBM, $EB^{2}M$ methods on 3 synthetic regression datasets
117120

118121
### Evaluation on Real Datasets
119-
All scripts should be executed from inside the `effector/calm-experiments/` directory to ensure relative paths and imports work correctly.
122+
All scripts should be executed from inside the `calm-experiments/` directory to ensure relative paths and imports work correctly.
120123

121124
#### Main Paper Results
122125
For the main paper results the XGB, EBM, NAM, CALM, $EB^{2}M$, $NODE-GA^{2}M$, GAMI-Net methods were run in both regression and classification datasets. CALM is configured to run with the default configuration.

0 commit comments

Comments
 (0)