take CNN test by keras or nokeras use withtf、pytorch

This commit is contained in:
weiyuqing committed 2023-03-16 16:06:03 +08:00
1 parent db96f453f8
commit e9e540ad80
5 files changed
+298 -6

No files matched your search

+6 -1
View File
@@ -3,9 +3,14 @@ import pywt
import wfdb
from matplotlib import pyplot as plt
#file error
#use db5 ,level9 do deviose
from ECG_read_weiyuqing_without_wfdb import PATH
#from ECG_read_weiyuqing_without_wfdb import PATH
record=wfdb.rdrecord('./mit-bih-arrhythmia-database-1.0.0/'+100,channel_names=['MLII'])
record=wfdb.rdrecord(PATH+100,channel_names=['MLII'])
data=record.p_signal.flatten()
coeffs=pywt.wavedec(data=data,wavelet='db5',level=9)