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
Copy file name to clipboardExpand all lines: README.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,44 @@
2
2
3
3
## Installing Efficiency & Convexity
4
4
5
-
First, set up a virtual environment (e.g. via [miniconda](https://docs.conda.io/en/latest/miniconda.html), `conda create -n eff_conv python=3.11`, and `conda activate eff_conv`).
6
-
7
5
1. Download or clone this repository and navigate to the root folder.
8
6
9
7
2. Install the IB Optimizer (We recommend doing this inside a virtual environment)
10
8
11
9
`pip install -e .`
12
10
11
+
## Development, Examples, & Tests
12
+
13
+
### Setting Up the Environment
14
+
15
+
First, install [uv](https://docs.astral.sh/uv/getting-started/installation/). After `uv` is installed navigate to root of the project and execute:
16
+
17
+
```sh
18
+
uv sync
19
+
```
20
+
21
+
### Testing
22
+
23
+
Tests are located in `src/tests` and can be run using:
24
+
25
+
```sh
26
+
uv run pytest
27
+
```
28
+
29
+
### Examples
30
+
31
+
Examples can be found in the `src/examples` folder. Each example will have documentation of how to execute its scripts in their respective `README.md` files.
32
+
Note that oftentimes scripts from each example are to be executed in the `src/examples` folder, NOT the folder of the example itself.
33
+
13
34
## References
14
35
36
+
<details>
15
37
<summary>Links:</summary>
16
38
17
39
> Tishby, N., Fernando P., & Bialek, W. (2000). The information bottleneck method. The 37th annual Allerton Conference on Communication, Control, and Computing. pp. 368–377. https://doi.org/10.48550/arXiv.physics/0004057
18
40
19
41
> Skinner, L. (2025). Convexity is a Fundamental Feature of Efficient Semantic Compression in Probability Spaces. https://hdl.handle.net/1773/53008
20
42
43
+
> Zaslavsky, N., Kemp, C., Regier, T., & Tishby, N. (2018). Efficient compression in color naming and its evolution. Proceedings of the National Academy of Sciences, 115(31), 7937–7942. https://doi.org/10.1073/pnas.1800521115
uv run -m colors.visualization.cloud color_diff 20 diff
33
31
```
34
32
35
33
This will create the files `color_reg.png`, `color_rot.png`, and `color_diff.png` in the `output/color` folder.
@@ -42,7 +40,7 @@ The raw model files for each experiement are very large (ranging from 250 MB for
42
40
If you wish to run this experiment with your own data, after doing the data generation for experiment 1 and 2 you will need to generate the `.csv` files using the following command:
0 commit comments