d8ab8131e19498c2b9bed8d218e4e46eedc7cf21,librosa/tf_agc.py,,tf_agc,#Any#Any#,106
Before Change
// initialze the state vector
state = numpy.zeros( (n, 1) )
fbg = numpy.zeros( (n, 1) )
pass
// FFT each frame
After Change
//% map back to FFT grid, flatten bark loop gain
//sf2a = sum(f2a);
normalize_f2a = numpy.sum(f2a, axis=0)
normalize_f2a[normalize_f2a == 0] = 1.0
normalize_f2a = 1.0 / normalize_f2a
// initialze the state vector
state = numpy.zeros( (num_frequency_bands, 1) )[0]
pass
// FFT each frame
D = scipy.fft(frame)
// multiply by f2a
audiogram = numpy.dot(f2a, numpy.abs(D))
//// DPWE
// state = max([alpha*state,audgram(:,i)],[],2);
// fbg(:,i) = state;
// ...
//
state = numpy.maximum(alpha * state, audiogram)
//E = diag(1./(sf2a+(sf2a==0))) * f2a" * fbg;
E = normalize_f2a * numpy.dot(f2a.T, state);
//% Remove any zeros in E (shouldn"t be any, but who knows?)
//E(E(:)<=0) = min(E(E(:)>0));
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: librosa/librosa
Commit Name: d8ab8131e19498c2b9bed8d218e4e46eedc7cf21
Time: 2012-10-20
Author: brm2132@columbia.edu
File Name: librosa/tf_agc.py
Class Name:
Method Name: tf_agc
Project Name: deepmipt/DeepPavlov
Commit Name: 61980b57db5349ec0adc4a7b4797ee4742c21b73
Time: 2018-02-15
Author: yoptar@gmail.com
File Name: deeppavlov/models/classifiers/intents/intent_model.py
Class Name: KerasIntentModel
Method Name: texts2vec
Project Name: dask/dask-image
Commit Name: c9fd2c425cb873508ba16221819574400ad2443e
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: extrema