Skip to content

potential BUG in function utils.euclidean_distances() #430

@Shijie-NLP

Description

@Shijie-NLP

Describe the bug

Hi, I am confused with the flag squared=False in the function utils.euclidean_distances().

According to the declaration, if squared flag is set to True, this function should return squared results. BUT in the code, it is not the case.

image

why it takes square when this flag is False?

Expected behavior

Do square operation when the argument 'squared' is set to True

Environment (please complete the following information):

POT version: 0.8.2

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions