// 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...
line 126 has a bug:
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...