summaryrefslogtreecommitdiff
path: root/ot/lp
AgeCommit message (Collapse)Author
2021-10-25[MRG] Backend for optim (#282)ncassereau-idris
* Backend for optim * Bug solve * Doc update * backend tests now with fixture * Unused imports removed * Docs * Docs * Docs * Outer product backend docs * Prettier docs * Pep8 * Mistakes corrected Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2021-09-29[MRG] OpenMP support (#260)kguerda-idris
* Added : OpenMP support Restored : Epsilon and Debug mode Replaced : parmap => multiprocessing is now replace by multithreading * Commit clean up * Number of CPUs correctly calculated on SLURM clusters * Corrected number of processes for cluster slurm * Mistake corrected * parmap is now deprecated * Now a different solver is used depending on the requested number of threads * Tiny mistake corrected * Folders are now in the ot library instead of at the root * Helpers is now correctly placed * Attempt to make compilation work smoothly * OS compatible path * NumThreads now defaults to 1 * Better flags * Mistake corrected in case of OpenMP unavailability * Revert OpenMP flags modification, which do not compile on Windows * Test helper functions * Helpers comments * Documentation update * File title corrected * Warning no longer using print * Last attempt for macos compilation * pls work * atempt * solving a type error * TypeError OpenMP * Compilation finally working on Windows * Bug solve, number of threads now correctly selected * 64 bits solver to avoid overflows for bigger problems * 64 bits EMD corrected Co-authored-by: kguerda-idris <ssos023@jean-zay3.idris.fr> Co-authored-by: ncassereau-idris <84033440+ncassereau-idris@users.noreply.github.com> Co-authored-by: ncassereau <nathan.cassereau@idris.fr> Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2021-06-01[MRG] POT numpy/torch/jax backends (#249)Rémi Flamary
* add numpy and torch backends * stat sets on functions * proper import * install recent torch on windows * install recent torch on windows * now testing all functions in backedn * add jax backedn * clenaup windowds * proper convert for jax backedn * pep8 * try again windows tests * test jax conversion * try proper widows tests * emd fuction ses backedn * better test partial OT * proper tests to_numpy and teplate Backend * pep8 * pep8 x2 * feaking sinkhorn works with torch * sinkhorn2 compatible * working ot.emd2 * important detach * it should work * jax autodiff emd * pep8 * no tast same for jax * new independat tests per backedn * freaking pep8 * add tests for gradients * deprecate ot.gpu * worging dist function * working dist * dist done in backedn * not in * remove indexing * change accuacy for jax * first pull backend * projection simplex * projection simplex * projection simplex * projection simplex no ci * projection simplex no ci * projection simplex no ci * pep8 * add backedn discusion to quickstart guide * projection simplex no ci * projection simplex no ci * projection simplex no ci * pep8 + better doc * proper links * corect doctest * big debug documentation * doctest again * doctest again bis * doctest again ter (last one or i kill myself) * backend test + doc proj simplex * correction test_utils * correction test_utils * correction cumsum * correction flip * correction flip v2 * more debug * more debug * more debug + pep8 * pep8 * argh * proj_simplex * backedn works for sort * proj simplex * jax sucks * update doc * Update test/test_utils.py Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update docs/source/quickstart.rst Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update docs/source/quickstart.rst Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update docs/source/quickstart.rst Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update docs/source/readme.rst Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update test/test_utils.py Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update ot/utils.py Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update docs/source/readme.rst Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update ot/lp/__init__.py Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * begin comment alex * comment alex part 2 * optimize test gromov * proj_simplex on vectors * add awesome gradient decsnt example on the weights * pep98 of course * proof read example by alex * pep8 again * encoding oos in translation * correct legend Co-authored-by: Nicolas Courty <ncourty@irisa.fr> Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-05-26Docs correction (#252)ncassereau-idris
2021-04-21[MRG] Fixes issue #239 (deprecated numpy types) (#244)Rémi Flamary
* remove warning numpy int? * use long long * stoupid mistake * cleanup double test run in PR from local branch
2021-04-19[MRG] Cleanup test warnings (#242)Rémi Flamary
* remove warnings in tests from docstrings * working tets for bregman implemneted methods * pep8
2020-11-12change precision EPSILON in C code (#217)Nicolas Courty
* change precision EPSILON in C code * change precision EPSILON in C code V2 * change precision EPSILON in C code V3 (add comment and remove unnecessary lines
2020-10-22[MRG] Cleanup minimal build and add separate build for pep8 (#210)Rémi Flamary
* cleanup requiorement minimal * add pep8 build * cleanup sklearn * skip test if no sklearn * debug build yaml * comment error out in test (test sklearn) * maybe small stuff for better robustness : copy the sub-array * bump verison minimal build * update version strict requireent * update version strict requirement last change
2020-07-20Correct documentation for support barycenter (#201)AdrienCorenflos
* example for log treatment in bregman.py * Improve doc * Revert "example for log treatment in bregman.py" This reverts commit 9f51c14e * Add comments by Flamary * Delete repetitive description * Added raw string to avoid pbs with backslashes
2020-05-05fix failing test - cur_idx needs to be incremented by 1 after the loopAdrienCorenflos
2020-05-05Some improvements for platform compatibilityAdrienCorenflos
2020-05-05break before exceeding array sizeAdrienCorenflos
2020-05-05Merge branch 'master' into doc_v0.7Rémi Flamary
2020-05-05remove dense from ducumentationRémi Flamary
2020-05-04Add nogil to EMD_wrapMarc Glisse
2020-04-24correct doc for emdRémi Flamary
2020-04-23[WIP] Issue with sparse emd and adding tests on macos (#158)Nicolas Courty
* First commit-warning removal * remove dense feature * pep8 * pep8 * EMD.h * pep8 again * tic toc tolerance Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2020-04-07Merge branch 'master' into laplace_daievred
2020-04-03remove commented lineievred
2020-04-02laplace v1ievred
2020-04-02Remove flatten, it's not useful.AdrienCorenflos
2020-04-02Auto PEP8AdrienCorenflos
2020-04-01Fix orderingAdrienCorenflos
2020-01-30comlete documentationRémi Flamary
2020-01-27correct emd2 and add centering for dual potentialsRémi Flamary
2020-01-27correct bug in emd emd2 still todoRémi Flamary
2020-01-07Merge branch 'master' into emd_dimensionKilian
2019-12-18cleanup emd.h and pyx fileRémi Flamary
2019-12-18correct documentation in pyx fileRémi Flamary
2019-12-18cleanup variable name denseRémi Flamary
2019-12-10change or in assert by andKilian
2019-12-09add assert for emd dimension mismatchKilian
2019-12-03first implemntation sparse lossRémi Flamary
2019-12-02proper documentation and parameterRémi Flamary
2019-12-02add awesome sparse solverRémi Flamary
2019-12-02nothing explodes and it compilesRémi Flamary
2019-11-29correct bad speedupRémi Flamary
2019-11-29cant beleive i forgot a semicolumnRémi Flamary
2019-11-29cleanup cpp code and annd emd with sparse Ot matrixRémi Flamary
2019-07-05cleanup parmap on windowsRémi Flamary
2019-07-03doc in modulesRémi Flamary
2019-07-02Merge branch 'master' into doc_modulesRémi Flamary
2019-07-01Set numpy array formatting version to post-1.13Romain Tavenard
2019-06-27Merge branch 'master' into doc_modulesRémi Flamary
2019-06-27Added RT as a contributor + "optimized" Cython math operationsRomain Tavenard
2019-06-27Wasserstein defined as the cost itself (do not return transportation matrix)Romain Tavenard
2019-06-27Improved tests and docs for wasserstein_1dRomain Tavenard
2019-06-27Added minkowski variants and wasserstein_1d functionsRomain Tavenard
2019-06-24Made weight vectors optional to match scipy's wass1d APIRomain Tavenard
2019-06-24Added more docstrings (Cython) + fixed link to ot.dist docRomain Tavenard