Skip to content

RandomProjectTree.java bug #9

@aeonic-scott

Description

@aeonic-scott

line 126 has a bug:

// return new Object[]{indicesLeft, indicesRight, hyperplaneVector, null};
return new Object[]{indicesLeft, indicesRight, hyperplaneVector, 0.0f};

When angular the 4th null param is crashing (ie, with CosineDistince metric. Change it to a 0.0f resolves the issue. Same for all other angular fns like sparse...

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