Skip to content

The example in the tutorial (Optimal Transport solvers comparison) does not work due to the NotImplementedError #682

Open
@RequieMa

Description

@RequieMa

I tried the example in Optimal Transport solvers comparison (https://pythonot.github.io/auto_examples/plot_solve_variants.html#sphx-glr-auto-examples-plot-solve-variants-py)

It gave me NotImplementedError when defining G = ot.solve(M, a, b, **param).plan

NotImplementedError: Not implemented reg_type="KL" and unbalanced_type="tv"

By inspecting the code, it seems that many combinations are ignored in the implementation.

if not isinstance(reg_type, tuple) and reg_type.lower() in ['kl'] and unbalanced_type.lower() == 'kl':

Will that be included in future? Or does it exist in some branches?
(I installed via pip install POT[all], and it seems to installed POT-0.9.3-cp38-cp38-win_amd64.whl)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions