Python下使用LibSVM语音进行情感识别

使用MEC2017 Gale数据库进行预测,识别率只有可怜的35.2192%,估计会被老板骂死,接下来好好调参吧。

 

import sys
sys.path.append('C:\Program Files\libsvm-3.16\python')
from svmutil import *
train_label,train_pixel = svm_read_problem(r'C:\Users\SIAT\Desktop\Newfiles\train.scale') 
predict_label,predict_pixel = svm_read_problem(r'C:\Users\SIAT\Desktop\Newfiles\dev.scale')
model = svm_train(train_label, train_pixel)
print("result:")
p_label, p_acc, p_val = svm_predict(predict_label, predict_pixel, model);

print(p_acc)

 

你可能感兴趣的:(脚本)