From 3c561f2e57aafcf474a7c81344e18f3128e650aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= Date: Wed, 15 Feb 2023 11:22:01 +0100 Subject: [PATCH] Reduce BH duplicate threshold to 1e-16, fix failing iris test --- openTSNE/quad_tree.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openTSNE/quad_tree.pyx b/openTSNE/quad_tree.pyx index 6297fba6..08bae6a0 100644 --- a/openTSNE/quad_tree.pyx +++ b/openTSNE/quad_tree.pyx @@ -124,7 +124,7 @@ cdef void split_node(Node * node): PyMem_Free(new_center) -cdef inline bint is_duplicate(Node * node, double * point, double duplicate_eps=EPSILON) nogil: +cdef inline bint is_duplicate(Node * node, double * point, double duplicate_eps=1e-16) nogil: cdef Py_ssize_t d for d in range(node.n_dims): if fabs(node.center_of_mass[d] - point[d]) >= duplicate_eps: