Skip to content

Remove default barycenter geometry initialization in fixed support case #77

@pbarbarant

Description

@pbarbarant

If self.learn_geometry is True but init_barycenter_geometry is None, the geometric cost matrix of the barycenter is filled with ones:

barycenter_geometry = (
       torch.ones((barycenter_size, barycenter_size)).to(device)
       / barycenter_size
)

This is an appropriate initialization when the cost matrix is learnt in the free support case but not in the fixed support case where it is kept during the whole optimization process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions