Example #1
0
if __name__ == "__main__":
    
    numclasses = 5

    
    expsnum = 1
    batchsize = 1
    maxepoch = 1
    patience = 4
    timesteps = 1
    #imbalanced
    balanced = False
    svmkernel = 'linear'
    print('svm with rrintervals...')
    console.run('svm', 'rrintervals', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with raw...')
    console.run('svm', 'raw', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with fft35...')
    console.run('svm', 'fft35', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with waveletdb1lvl3...')
    console.run('svm', 'waveletdb1lvl3', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with hos...')
    console.run('svm', 'hos', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with waveletdb1lvl3uniformlbp...')
    console.run('svm', 'waveletdb1lvl3uniformlbp', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)
    print('svm with hermite...')
    console.run('svm', 'hermite', 'flatten', timesteps, numclasses, batchsize, maxepoch, patience, expsnum, balanced, svm_kernel=svmkernel)

    #balanced
    balanced = True
Example #2
0
import sys, getopt, os
sys.path.append(os.path.dirname(__file__) + '\\..')
from ECG import console

if __name__ == "__main__":

    numclasses = 5

    expsnum = 5
    batchsize = 512
    maxepoch = 60
    patience = 8
    timesteps = None
    #imbalanced

    balanced = True
    print('lstm with waveletdb1lvl3...')
    console.run('lstm', 'waveletdb1lvl3', 'leads', timesteps, numclasses,
                batchsize, maxepoch, patience, expsnum, balanced)

    balanced = False
    print('lstm with raw...')
    console.run('lstm', 'raw', 'leads', timesteps, numclasses, batchsize,
                maxepoch, patience, expsnum, balanced)
    print('lstm with waveletdb1lvl3...')
    console.run('lstm', 'waveletdb1lvl3', 'leads', timesteps, numclasses,
                batchsize, maxepoch, patience, expsnum, balanced)