MCPcopy Index your code
hub / github.com/alexisthual/fugw

github.com/alexisthual/fugw @0.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.1 ↗ · + Follow
133 symbols 681 edges 32 files 80 documented · 60%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Fused Unbalanced Gromov-Wasserstein for Python

build python version license code style

This package implements multiple GPU-compatible PyTorch solvers to the Fused Unbalanced Gromov-Wasserstein optimal transport problem.

This package is under active development. There is no guarantee that the API and solvers won't change in the near future.

Installation

To install this package, make sure you have an up-to-date version of pip.

From PyPI

In a dedicated Python env, run:

pip install fugw

From source

git clone https://github.com/alexisthual/fugw.git
cd fugw

In a dedicated Python env, run:

pip install -e .

Contributors should also install the development dependencies in order to test and automatically format their contributions.

pip install -e ".[dev]"
pre-commit install

Tests run on CPU and GPU, depending on the configuration of your machine. You can run them with:

pytest

Citing this work

If this package was useful to you, please cite it in your work:

@article{Thual-2022-fugw,
  title={Aligning individual brains with Fused Unbalanced Gromov-Wasserstein},
  author={Thual, Alexis and Tran, Huy and Zemskova, Tatiana and Courty, Nicolas and Flamary, Rémi and Dehaene, Stanislas and Thirion, Bertrand},
  publisher={arXiv},
  doi={10.48550/ARXIV.2206.09398},
  url={https://arxiv.org/abs/2206.09398},
  year={2022},
  copyright={Creative Commons Attribution 4.0 International}
}

Core symbols most depended-on inside this repo

Shape

Function 95
Method 29
Class 8
Route 1

Languages

Python100%

Modules by API surface

src/fugw/solvers/utils.py32 symbols
src/fugw/utils.py11 symbols
src/fugw/scripts/lmds.py10 symbols
src/fugw/mappings/barycenter.py8 symbols
src/fugw/scripts/coarse_to_fine.py7 symbols
src/fugw/mappings/utils.py7 symbols
tests/scripts/test_lmds.py5 symbols
src/fugw/solvers/sparse.py5 symbols
src/fugw/solvers/dense.py5 symbols
tests/test_utils.py4 symbols
tests/solvers/test_dense_solver.py4 symbols
tests/mappings/test_sparse_mapping.py4 symbols

For agents

$ claude mcp add fugw \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page