Пример #1
0
 def test_lpc_dim():
     fname = "final-log/lpc-dim.log"
     sys.stdout = open(fname, 'a')
     for n_c in [11, 13, 15, 17, 19, 23, 25]:
         print "n_dim={} LPC WINL=32, WINS=16".format(n_c)
         test_feature(get_extractor(LPC.extract, n_lpc=n_c), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #2
0
 def test_bob_win():
     fname = "final-log/bob-win.log"
     sys.stdout = open(fname, 'a')
     for n_c in [20, 24, 28, 32, 36, 40]:
         print "n_ceps=19 MFCC NFILTER=55, WINL={0}".format(n_c)
         test_feature(get_extractor(BOB.extract, win_length_ms=n_c, win_shift_ms=n_c/ 2), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #3
0
 def test_lpc_win():
     fname = "final-log/lpc-win.log"
     sys.stdout = open(fname, 'a')
     for n_c in [20, 24, 28, 32, 36, 40]:
         print "n_dim=15 LPC WINL={0}".format(n_c)
         test_feature(get_extractor(LPC.extract, win_length_ms=n_c, win_shift_ms=n_c/ 2), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #4
0
 def test_bob_nfilter():
     fname = "final-log/bob-nfilter.log"
     sys.stdout = open(fname, 'a')
     for n_f in [20, 25, 30, 35, 40, 45, 50, 55]:
         print "MFCC NFILTER={}".format(n_f)
         test_feature(get_extractor(BOB.extract, n_filters=n_f), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #5
0
 def test_bob_nceps():
     fname = "final-log/bob-nceps.log"
     sys.stdout = open(fname, 'a')
     for n_c in [13, 15, 17, 19, 23, 25]:
         print "n_ceps={} MFCC NFILTER=55, WINL=32, WINS=16".format(n_c)
         test_feature(get_extractor(BOB.extract, n_ceps=n_c), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #6
0
 def test_lpc_dim():
     fname = "final-log/lpc-dim.log"
     sys.stdout = open(fname, "a")
     for n_c in [11, 13, 15, 17, 19, 23, 25]:
         print "n_dim={} LPC WINL=32, WINS=16".format(n_c)
         test_feature(get_extractor(LPC.extract, n_lpc=n_c), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #7
0
 def test_bob_nceps():
     fname = "final-log/bob-nceps.log"
     sys.stdout = open(fname, "a")
     for n_c in [13, 15, 17, 19, 23, 25]:
         print "n_ceps={} MFCC NFILTER=55, WINL=32, WINS=16".format(n_c)
         test_feature(get_extractor(BOB.extract, n_ceps=n_c), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #8
0
 def test_bob_nfilter():
     fname = "final-log/bob-nfilter.log"
     sys.stdout = open(fname, "a")
     for n_f in [20, 25, 30, 35, 40, 45, 50, 55]:
         print "MFCC NFILTER={}".format(n_f)
         test_feature(get_extractor(BOB.extract, n_filters=n_f), X_train, y_train, X_test, y_test)
     sys.stdout.close()
Пример #9
0
 def test_lpc_win():
     fname = "final-log/lpc-win.log"
     sys.stdout = open(fname, "a")
     for n_c in [20, 24, 28, 32, 36, 40]:
         print "n_dim=15 LPC WINL={0}".format(n_c)
         test_feature(
             get_extractor(LPC.extract, win_length_ms=n_c, win_shift_ms=n_c / 2), X_train, y_train, X_test, y_test
         )
     sys.stdout.close()
Пример #10
0
 def test_bob_win():
     fname = "final-log/bob-win.log"
     sys.stdout = open(fname, "a")
     for n_c in [20, 24, 28, 32, 36, 40]:
         print "n_ceps=19 MFCC NFILTER=55, WINL={0}".format(n_c)
         test_feature(
             get_extractor(BOB.extract, win_length_ms=n_c, win_shift_ms=n_c / 2), X_train, y_train, X_test, y_test
         )
     sys.stdout.close()