bfc15526354399bdd615f06cd5db7efd911e6eea,librosa/feature.py,,rms,#,326
Before Change
"""
N,K = np.shape(S)
rms = np.sqrt(np.sum(S*S,axis = 0)/N)
return rms
@cache
After Change
// By default, use a magnitude spectrogram
S = librosa.stft(y, n_fft=n_fft, hop_length=hop_length)
return np.sqrt(np.mean(np.abs(S)**2, axis=0) )
@cache
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: librosa/librosa
Commit Name: bfc15526354399bdd615f06cd5db7efd911e6eea
Time: 2014-12-29
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: rms
Project Name: lyst/lightfm
Commit Name: d36972b3c74c27fae7e32dfc8f33809056fe2e12
Time: 2016-04-20
Author: noocrat@gmail.com
File Name: tests/test_evaluation.py
Class Name:
Method Name: test_precision_at_k
Project Name: Scitator/catalyst
Commit Name: f4beaac559e00a3676d942dc7e8fea69efc01cfe
Time: 2020-11-30
Author: raveforlive@gmail.com
File Name: catalyst/metrics/hitrate.py
Class Name:
Method Name: hitrate