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
- Adding your own Data: [Source](https://carla-counterfactual-and-recourse-library.readthedocs.io/en/latest/examples.html#data)
20
20
- Adding your own ML-Model: [Source](https://carla-counterfactual-and-recourse-library.readthedocs.io/en/latest/examples.html#black-box-model)
21
-
- Adding your own Recourse Method: [Source 1](recourse_addition.md)[Source 2](https://carla-counterfactual-and-recourse-library.readthedocs.io/en/latest/examples.html#recourse-method)
21
+
- Adding your own Recourse Method: [Source 1](documentation\recourse_addition.md)[Source 2](https://carla-counterfactual-and-recourse-library.readthedocs.io/en/latest/examples.html#recourse-method)
22
22
23
23
### Available Datasets
24
24
@@ -114,15 +114,15 @@ This folder contains the implementation of all evaluation and benchmark metrics
114
114
115
115
### Live Site Folder
116
116
117
-
This folder contains the implementation of the frontend UI interface, which displays results stored in `results.csv` from executing `./run_experiment.py`.
117
+
This folder contains the implementation of the frontend UI interface, which displays results stored in `results.csv` from executing `./experiments/run_experiment.py`.
118
118
119
119
### Models Folder
120
120
121
121
This folder contains all implemented models/classifiers in the repository. It also contains the model catalog class, which includes methods for loading models/classifiers and other relevant functionalities.
122
122
123
123
### Recourse Methods
124
124
125
-
This folder contains all the implemented recourse methods in the repository. Each recourse method has its own subfolder within the catalog directory (`recourse_methods/catalog`) and is implemented using the `RecourseMethod` API class` interface.
125
+
This folder contains all the implemented recourse methods in the repository. Each recourse method has its own subfolder within the catalog directory (`methods/catalog`) and is implemented using the `RecourseMethod` API class` interface.
126
126
127
127
## Quickstart
128
128
@@ -132,7 +132,7 @@ from evaluation import Benchmark
132
132
import evaluation.catalog as evaluation_catalog
133
133
from models.catalog import ModelCatalog
134
134
from random import seed
135
-
fromrecourse_methodsimport GrowingSpheres
135
+
frommethodsimport GrowingSpheres
136
136
137
137
RANDOM_SEED=54321
138
138
seed(RANDOM_SEED) # set the random seed so that the random permutations can be reproduced again
Read more from [here](livesite_amend.md) to learn about amending the live site tool.
186
+
Read more from [here](documentation\livesite_amend.md) to learn about amending the live site tool.
187
187
188
188
## Testing
189
189
190
190
Using python directly or within activated virtual environment:
191
191
192
192
```sh
193
193
pip install -r requirements-dev.txt
194
-
python -m pytest .\sanity_test.py
194
+
python -m pytest .\tools\sanity_test.py
195
195
```
196
196
197
197
## Running Experiment
198
198
199
199
Before running the command below, clear out all former computations from the `results.csv` file. Ensure to maintain the header (first line) of the csv file, and only delete the computation result.
200
200
201
201
```sh
202
-
python .\run_experiment.py
202
+
python -m experiments.run_experiment
203
203
```
204
204
205
205
## Linting and Styling
@@ -253,7 +253,7 @@ Contributions of any kind are very much welcome! Take a look at the To-Do issues
253
253
254
254
### Reproducibility
255
255
256
-
- It is essential that implemented algorithms closely match the research paper they are derived from. Therefore, every implemented algorithm must be accompanied by a `reproduce.py` test file (in the corresponding folder in `recourse_methods/catalog`). This file should contain unit tests that replicate the experiments presented in the corresponding research paper, ensuring that the results obtained are consistent with those reported in the paper, within an acceptable margin of error.
256
+
- It is essential that implemented algorithms closely match the research paper they are derived from. Therefore, every implemented algorithm must be accompanied by a `reproduce.py` test file (in the corresponding folder in `methods/catalog`). This file should contain unit tests that replicate the experiments presented in the corresponding research paper, ensuring that the results obtained are consistent with those reported in the paper, within an acceptable margin of error.
0 commit comments