mirror of
https://github.com/This-weiyuqing/ECG_by_Diffenert_CNN_Test.git
synced 2026-10-18 03:13:39 +08:00
take CNN test by keras or nokeras use withtf、pytorch
This commit is contained in:
1 parent
db96f453f8
commit
e9e540ad80
5 files changed
+298
-6
No files matched your search
+6
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user