Skip to content

Warning on normalizing vectors with zero norm #120

Closed
@mikeheddes

Description

@mikeheddes

In the cos_similarity and Centroid.normalize a divide by zero is prevented by setting a minimal vector norm of some small epsilon. When a norm less than this epsilon occurs a warning should be printed that reports this to the user because this most likely means that there is a bug. E.g., one class has no training samples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions