Skip to content

Commit

Permalink
union as default
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Jun 13, 2024
1 parent 2be8ba7 commit 5afcf9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/postprocessing/template_similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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

Expand Down

0 comments on commit 5afcf9b

Please sign in to comment.