Skip to content

Dead code to investigate #81

Open
@irevoire

Description

@irevoire

Hey,

I noticed some dead code in the euclidean & manhattan distance;

normal.header.bias = normal
.vector
.iter()
.zip(node_p.vector.iter())
.zip(node_q.vector.iter())
.map(|((n, p), q)| -n * (p + q) / 2.0)
.sum();

normal.header.bias = normal
.vector
.iter()
.zip(node_p.vector.iter())
.zip(node_q.vector.iter())
.map(|((n, p), q)| -n * (p + q) / 2.0)
.sum();

Before deleting it, we should investigate and try to understand if we were not supposed to be doing this operation in the pre-process or somewhere else?
Are the bias even set anywhere?

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