summaryrefslogtreecommitdiff
path: root/test/test_optim.py
AgeCommit message (Collapse)Author
2022-03-24[MRG] Domain adaptation and unbalanced solvers with backend support (#343)Nathan Cassereau
* First draft * Add matrix inverse and square root to backend * Eigen decomposition for older versions of pytorch (1.8.1 and older) * Corrected eigen decomposition for pytorch 1.8.1 and older * Spectral theorem is a thing * Optimization * small optimization * More functions converted * pep8 * remove a warning and prepare torch meshgrid for future torch release (which will change default indexing) * dots and pep8 * Meshgrid corrected for older version and prepared for future versions changes * New backend functions * Base transport * LinearTransport * All transport classes + pep8 * PR added to release file * Jcpot barycenter test * unbalanced with backend * pep8 * bug solve * test of domain adaptation with backends * solve bug for tic toc & macos * solving scipy deprecation warning * solving scipy deprecation warning attempt2 * solving scipy deprecation warning attempt3 * A warning is triggered when a float->int conversion is detected * bug solve * docs * release file updated * Better handling of float->int conversion in EMD * Corrected test for is_floating_point * docs * release file updated * cupy does not allow implicit cast * fromnumpy * added test * test da tf jax * test unbalanced with no provided histogram * using type_as argument in unif function correctly * pep8 * transport plan cast in emd changed behaviour, now trying to cast as histogram's dtype, defaulting to cost matrix Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2021-11-17[MRG] SinkhornL1L2Transport bug (#312)Nathan Cassereau
* solve bug * Linesearch no longer return None as alpha, only 0
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-28[MRG] Regularized OT (optim.cg) bug solve (#286)ncassereau-idris
* Line search stops when derphi is 0 instead of bugging out like in some instances * pep8 compliance * Tests
2021-06-17[MRG] Speedup tests (#262)Rémi Flamary
* speedup tests * add color to tests and timings * add test unbalanced * stupid missing -
2020-08-24Check if alpha is not None when restricting it to be at most 1 (#199)Panayiotis Panayiotou
* Check if alpha is not None when restricting it to be at most 1 * Write check more clearly * Add no regression test for line search armijo returning None for alpha Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2020-04-24better coverage options verbose and logRémi Flamary
2019-11-15fix bug numItermax emd in cgKilian
2019-06-04changes forgotten comentstvayer
2019-05-29Reame +pep8tvayer
2019-05-29Tests + contributionstvayer
2018-05-30replace function name tin testsRémi Flamary
2017-07-26author and license for tets filesRémi Flamary
2017-07-26flake8Rémi Flamary
2017-07-26test_optim allcloseRémi Flamary
2017-07-26test_optimRémi Flamary
2017-07-26import nmpy before otRémi Flamary
2017-07-24add dr testsRémi Flamary
2017-07-24add test optimRémi Flamary