From 5afcf9b0d958e36fca0d5102bb1ca9f230ac8e33 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 13 Jun 2024 16:02:07 +0200 Subject: [PATCH] union as default --- src/spikeinterface/postprocessing/template_similarity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/postprocessing/template_similarity.py b/src/spikeinterface/postprocessing/template_similarity.py index 246eefb4d6..cffd987991 100644 --- a/src/spikeinterface/postprocessing/template_similarity.py +++ b/src/spikeinterface/postprocessing/template_similarity.py @@ -20,7 +20,7 @@ class ComputeTemplateSimilarity(AnalyzerExtension): The method to compute the similarity. Can be in ["cosine", "l2", "l1"] max_lag_ms : float, default 0 If specified, the best distance for all given lag within max_lag_ms is kept, for every template - support : str, default "dense" + support : str, default "union" Support that should be considered to compute the distances between the templates, given their sparsities. Can be either ["dense", "union", "intersection"] @@ -45,7 +45,7 @@ class ComputeTemplateSimilarity(AnalyzerExtension): def __init__(self, sorting_analyzer): AnalyzerExtension.__init__(self, sorting_analyzer) - def _set_params(self, method="cosine", max_lag_ms=0, support="dense"): + def _set_params(self, method="cosine", max_lag_ms=0, support="union"): params = dict(method=method, max_lag_ms=max_lag_ms, support=support) return params