From 3f4093733a91156820ad714333a2b5906934a38b Mon Sep 17 00:00:00 2001 From: Leland McInnes Date: Thu, 27 Oct 2016 23:05:07 -0400 Subject: [PATCH] Result type --- hdbscan/_prediction_utils.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hdbscan/_prediction_utils.pyx b/hdbscan/_prediction_utils.pyx index 9c66302b..b13906d3 100644 --- a/hdbscan/_prediction_utils.pyx +++ b/hdbscan/_prediction_utils.pyx @@ -176,6 +176,8 @@ cpdef np.ndarray[np.float64_t, ndim=1] per_cluster_scores( cdef np.intp_t i + cdef np.ndarray[np.float64_t, ndim=1] result + point_row = get_tree_row_with_child(tree, point) point_cluster = point_row['parent'] point_lambda = point_row['lambda_val']