2f8b3e30e3deb3702ae79b5ef0c3bd84496dcfc5,feat_extract.py,,extract_feature,#,17
Before Change
def extract_feature(file_name=None, X_sample_rate=None):
if file_name and not X_sample_rate: X, sample_rate = sf.read(file_name, dtype="float32")
elif not file_name and X_sample_rate: X , sample_rate = X_sample_rate
if X.ndim > 1: X = X[:,0]
X = X.T
After Change
data = []
with sd.InputStream(samplerate=sample_rate, callback=callback):
while True:
if len(data) < 100000: data.extend(q.get())
else: break
X = np.array(data)
if X.ndim > 1: X = X[:,0]
X = X.T
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: mtobeiyf/audio-classification
Commit Name: 2f8b3e30e3deb3702ae79b5ef0c3bd84496dcfc5
Time: 2018-11-24
Author: mvrozanti@hotmail.com
File Name: feat_extract.py
Class Name:
Method Name: extract_feature
Project Name: invesalius/invesalius3
Commit Name: 55dd5d8d1e6f5ee614eb8988f1b865435c5ff492
Time: 2010-01-07
Author: paulojamorim@gmail.com
File Name: invesalius/reader/analyze_reader.py
Class Name:
Method Name: ReadAnalyze
Project Name: silvandeleemput/memcnn
Commit Name: 9c7e9288e31c947aa54aec1217fedfbce2f85bc6
Time: 2019-05-27
Author: silvandeleemput@gmail.com
File Name: memcnn/trainers/classification.py
Class Name:
Method Name: train
Project Name: yhenon/pytorch-retinanet
Commit Name: b6443232013e8d248fe26f59630d43bc9688df06
Time: 2018-04-29
Author: yannhenon@gmail.com
File Name: train.py
Class Name:
Method Name: