b3cf6fd0c65394a97c2dbcff6dd835de5006e10f,featurex/extractors/audio.py,STFTExtractor,_extract,#STFTExtractor#Any#,74
Before Change
for fb in self.freq_bins:
label = "%d_%d" % fb
start, stop = fb
val = data[i, start:stop].mean()
if np.isinf(val):
val = 0.
value_data[label] = val
ev.add_value(Value(stim, self, value_data))
After Change
bins.append((i*bin_size, (i+1)*bin_size))
self.freq_bins = bins
features = ["%d_%d" % fb for fb in self.freq_bins]
index = [tb for tb in time_bins]
values = np.zeros((len(index), len(features)))
for i, fb in enumerate(self.freq_bins):
start, stop = fb
values[:, i] = data[:, start:stop].mean(1)
values = np.nan_to_num(values)
return ExtractorResult(values, stim, self, features=features,
onsets=index, durations=self.hop_size)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: tyarkoni/pliers
Commit Name: b3cf6fd0c65394a97c2dbcff6dd835de5006e10f
Time: 2016-10-12
Author: tyarkoni@gmail.com
File Name: featurex/extractors/audio.py
Class Name: STFTExtractor
Method Name: _extract
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: e70bdb2d089ae283781c45b8d97963823a984baa
Time: 2017-12-15
Author: max.lapan@gmail.com
File Name: ch10/00_pong_pg.py
Class Name:
Method Name:
Project Name: dmlc/gluon-cv
Commit Name: b30cdf3a1a977927345f407a4c25be2884cfee7f
Time: 2018-09-06
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: scripts/segmentation/train.py
Class Name: Trainer
Method Name: validation