From 10aaa8acc1586b96c0588294eb9aff243bfcb3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADnez?= <26169771+miguelusque@users.noreply.github.com> Date: Thu, 26 Sep 2024 00:08:53 +0200 Subject: [PATCH] Fix 264. Incorrect affinity parameter (#265) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #264. Scikit-learn is not expecting anymore the "affinity parameter" Signed-off-by: Miguel Martínez <26169771+miguelusque@users.noreply.github.com> --- tutorials/synthetic-retrieval-evaluation/DeDup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tutorials/synthetic-retrieval-evaluation/DeDup.py b/tutorials/synthetic-retrieval-evaluation/DeDup.py index 76f31e5da..dc277ee7d 100755 --- a/tutorials/synthetic-retrieval-evaluation/DeDup.py +++ b/tutorials/synthetic-retrieval-evaluation/DeDup.py @@ -32,7 +32,6 @@ def clustering(self, embeddings, threshold=0.075): agg_clustering = AgglomerativeClustering( n_clusters=None, - affinity="precomputed", linkage="complete", distance_threshold=threshold, )