20224aaa302f4c8f724f64f9bd1443758fec0a12,pyannote/audio/embedding/callbacks.py,SpeakerRecognitionValidation,on_epoch_end,#SpeakerRecognitionValidation#Any#Any#,198
Before Change
test = getattr(self.protocol, method)(yield_name=True)
fX = {}
for name, item in itertools.chain(enroll, test):
if name in fX:
continue
embeddings = aggregation.apply(item)
fX[name] = np.sum(embeddings.data, axis=0)
// perform trials
method = "{subset}_keys".format(subset=self.subset)
keys = getattr(self.protocol, method)()
enroll_fX = l2_normalize(np.vstack([fX[name] for name in keys.index]))
After Change
embeddings = aggregation.apply(item)
return name, np.sum(embeddings.data, axis=0)
fX = dict(self.pool_.imap_unordered(
func, itertools.chain(enroll, test)))
//
// fX = {}
// for name, item in itertools.chain(enroll, test):
// if name in fX:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pyannote/pyannote-audio
Commit Name: 20224aaa302f4c8f724f64f9bd1443758fec0a12
Time: 2016-12-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/callbacks.py
Class Name: SpeakerRecognitionValidation
Method Name: on_epoch_end
Project Name: pgmpy/pgmpy
Commit Name: fc33c738d2c5e9ec976cac5a373736a55aa976a1
Time: 2013-12-29
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: __init__
Project Name: brilee/MuGo
Commit Name: b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe
Time: 2016-07-06
Author: brian.kihoon.lee@gmail.com
File Name: policy.py
Class Name: PolicyNetwork
Method Name: initialize_logging
Project Name: has2k1/plotnine
Commit Name: 55107185fbb36dda8069409173fb570ea9094c73
Time: 2020-11-30
Author: has2k1@gmail.com
File Name: plotnine/ggplot.py
Class Name:
Method Name: save_as_pdf_pages