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: .github/CONTRIBUTING.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,15 @@ GitHub, clone, and develop on a branch. Steps:
20
20
$ cd POT
21
21
```
22
22
23
-
3. Install pre-commit hooks to ensure that your code is properly formatted:
23
+
3. Install a recent version of Python. Using an isolated environment such as venv or conda allows you to install a specific version of POT.
24
+
For instance, for creating a conda environment with python 3.12 and for activating it:
25
+
26
+
```bash
27
+
$ conda create -n dev-pot-env python=3.12
28
+
$ conda activate dev-pot-env
29
+
```
30
+
31
+
4. Install pre-commit hooks to ensure that your code is properly formatted:
24
32
25
33
```bash
26
34
$ pip install pre-commit
@@ -29,27 +37,14 @@ GitHub, clone, and develop on a branch. Steps:
29
37
30
38
This will install the pre-commit hooks that will run on every commit. If the hooks fail, the commit will be aborted.
31
39
32
-
4. Create a `feature` branch to hold your development changes:
40
+
5. Create a `feature` branch to hold your development changes:
33
41
34
42
```bash
35
43
$ git checkout -b my-feature
36
44
```
37
45
38
46
Always use a `feature` branch. It's good practice to never work on the `master` branch!
39
47
40
-
5. Install a recent version of Python (e.g. 3.10), using conda for instance. You can create a conda environment and activate it:
41
-
42
-
```bash
43
-
$ conda create -n dev-pot-env python=3.10
44
-
$ conda activate dev-pot-env
45
-
```
46
-
47
-
6. Install all the necessary packages in your environment:
48
-
49
-
```bash
50
-
$ pip install -r requirements_all.txt
51
-
```
52
-
53
48
6. Install a compiler with OpenMP support for your platform (see details on the [scikit-learn contributing guide](https://scikit-learn.org/stable/developers/advanced_installation.html#platform-specific-instructions)).
54
49
For instance, with macOS, Apple clang does not support OpenMP. One can install the LLVM OpenMP library from homebrew:
Copy file name to clipboardExpand all lines: examples/sliced-wasserstein/plot_sliced_plans.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@
8
8
Sliced plan was introduced in [82], and the Expected Sliced plan in [84], both
9
9
were further studied theoretically in [83].
10
10
11
-
.. [82] Mahey, G., Chapel, L., Gasso, G., Bonet, C., & Courty, N. (2023). Fast Optimal Transport through Sliced Generalized Wasserstein Geodesics. Advances in Neural Information Processing Systems, 36, 35350–35385.
11
+
.. [83] Mahey, G., Chapel, L., Gasso, G., Bonet, C., & Courty, N. (2023). Fast Optimal Transport through Sliced Generalized Wasserstein Geodesics. Advances in Neural Information Processing Systems, 36, 35350–35385.
12
12
13
-
.. [83] Tanguy, E., Chapel, L., Delon, J. (2025). Sliced Optimal Transport Plans. arXiv preprint 2506.03661.
13
+
.. [84] Tanguy, E., Chapel, L., Delon, J. (2025). Sliced Optimal Transport Plans. arXiv preprint 2506.03661.
14
14
15
-
.. [84] Liu, X., Diaz Martin, R., Bai Y., Shahbazi A., Thorpe M., Aldroubi A., Kolouri, S. (2024). Expected Sliced Transport Plans. International Conference on Learning Representations.
15
+
.. [85] Liu, X., Diaz Martin, R., Bai Y., Shahbazi A., Thorpe M., Aldroubi A., Kolouri, S. (2024). Expected Sliced Transport Plans. International Conference on Learning Representations.
0 commit comments