55e6def4d984c34679ab3c48a90055e93d351f79,feat_extract.py,,,#,89
Before Change
one_hot_encode[np.arange(n_labels), labels] = 1
return one_hot_encode
if __name__ == "__main__":
// Get features and labels
r = os.listdir("data/")
r.sort()
features, labels = parse_audio_files("data", r)
np.save("feat.npy", features)
np.save("label.npy", labels)
// Predict new
r = os.listdir("predict/")
r.sort()
features, filenames = parse_predict_files("predict")
np.save("predict_feat.npy", features)
np.save("predict_filenames.npy", filenames)
After Change
np.save("predict_feat.npy", features)
np.save("predict_filenames.npy", filenames)
if __name__ == "__main__": main()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: mtobeiyf/audio-classification
Commit Name: 55e6def4d984c34679ab3c48a90055e93d351f79
Time: 2018-11-25
Author: mvrozanti@hotmail.com
File Name: feat_extract.py
Class Name:
Method Name:
Project Name: albu/albumentations
Commit Name: 9bc517732374321e907a16a1f9ea2674a8251589
Time: 2020-05-01
Author: dipetm@gmail.com
File Name: tools/make_transforms_docs.py
Class Name:
Method Name:
Project Name: avinashpaliwal/Super-SloMo
Commit Name: 0306a7cb6680a9e9af59c0835c93453b2e6df7a9
Time: 2019-02-05
Author: nauman.mustafa@packagex.app
File Name: eval.py
Class Name:
Method Name: