abbfdc5b04ec1824e42cebb472626d234ff7bd36,scripts/speaker_embedding.py,,test,#Any#Any#Any#Any#Any#,383
Before Change
fX = sequence_embedding.transform(X, batch_size=batch_size)
if distance == "angular":
cosine_distance = pdist(fX, metric="cosine")
y_distance = np.arccos(np.clip(1.0 - cosine_distance, -1.0, 1.0))
else:
y_distance = pdist(fX, metric=distance)
y_true = pdist(y, metric="chebyshev") < 1
After Change
config = yaml.load(fp)
// -- PREPROCESSORS --
for key, preprocessor in config.get("preprocessors", {}).items():
preprocessor_name = preprocessor["name"]
preprocessor_params = preprocessor.get("params", {})
preprocessors = __import__("pyannote.audio.preprocessors",
fromlist=[preprocessor_name])
Preprocessor = getattr(preprocessors, preprocessor_name)
protocol.preprocessors[key] = Preprocessor(**preprocessor_params)
// -- FEATURE EXTRACTION --
feature_extraction_name = config["feature_extraction"]["name"]
features = __import__("pyannote.audio.features",
fromlist=[feature_extraction_name])
FeatureExtraction = getattr(features, feature_extraction_name)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pyannote/pyannote-audio
Commit Name: abbfdc5b04ec1824e42cebb472626d234ff7bd36
Time: 2017-01-09
Author: bredin@limsi.fr
File Name: scripts/speaker_embedding.py
Class Name:
Method Name: test
Project Name: 7ossam81/EvoloPy
Commit Name: 3170e821c8c633cba513d55077304d479fa7dbbc
Time: 2019-03-21
Author: jbae11@illinois.edu
File Name: CS.py
Class Name:
Method Name: get_cuckoos
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: cd87ed5451587900017daa71d8c82daf786258fd
Time: 2019-03-16
Author: beat.buesser@ie.ibm.com
File Name: art/attacks/adversarial_patch.py
Class Name: AdversarialPatch
Method Name: generate