From bca0dd61154b9ccc16514812f3baf495a60437c1 Mon Sep 17 00:00:00 2001 From: Gavin Date: Wed, 30 May 2018 00:09:50 +0800 Subject: [PATCH] change metric in create_split --- src/annoylib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/annoylib.h b/src/annoylib.h index 14e35ab4..21a4dff7 100644 --- a/src/annoylib.h +++ b/src/annoylib.h @@ -292,9 +292,11 @@ struct Angular { Node* p = (Node*)malloc(s); // TODO: avoid Node* q = (Node*)malloc(s); // TODO: avoid two_means >(nodes, f, random, true, p, q); + normalize(p->v, f); + normalize(q->v, f); for (int z = 0; z < f; z++) n->v[z] = p->v[z] - q->v[z]; - normalize(n->v, f); + // normalize(n->v, f); free(p); free(q); }