@@ -35,6 +35,9 @@ class MultiSortingComparison(BaseMultiComparison, MixinSpikeTrainComparison):
3535 Minimum agreement score to match units
3636 chance_score : float, default: 0.1
3737 Minimum agreement score to for a possible match
38+ agreement_method : "count" | "distance", default: "count"
39+ The method to compute agreement scores. The "count" method computes agreement scores from spike counts.
40+ The "distance" method computes agreement scores from spike time distance functions.
3841 n_jobs : int, default: -1
3942 Number of cores to use in parallel. Uses all available if -1
4043 spiketrain_mode : "union" | "intersection", default: "union"
@@ -60,6 +63,7 @@ def __init__(
6063 delta_time = 0.4 , # sampling_frequency=None,
6164 match_score = 0.5 ,
6265 chance_score = 0.1 ,
66+ agreement_method = "count" ,
6367 n_jobs = - 1 ,
6468 spiketrain_mode = "union" ,
6569 verbose = False ,
@@ -75,7 +79,9 @@ def __init__(
7579 chance_score = chance_score ,
7680 verbose = verbose ,
7781 )
78- MixinSpikeTrainComparison .__init__ (self , delta_time = delta_time , n_jobs = n_jobs )
82+ MixinSpikeTrainComparison .__init__ (
83+ self , delta_time = delta_time , agreement_method = agreement_method , n_jobs = n_jobs
84+ )
7985 self .set_frames_and_frequency (self .object_list )
8086 self ._spiketrain_mode = spiketrain_mode
8187 self ._spiketrains = None
@@ -93,6 +99,8 @@ def _compare_ij(self, i, j):
9399 sorting2_name = self .name_list [j ],
94100 delta_time = self .delta_time ,
95101 match_score = self .match_score ,
102+ chance_score = self .chance_score ,
103+ agreement_method = self .agreement_method ,
96104 n_jobs = self .n_jobs ,
97105 verbose = False ,
98106 )
0 commit comments