code_9.py 290 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2 3 4 5 6 7
from sklearn.metrics import accuracy_score # 导入准确率指标
C_param_range = [0.01, 0.1, 1, 10, 100, 1000]
sepal_acc_table = pd.Data Frame(columns = ['C_parameter', 'Accuracy'])
sepal_acc_table['C_parameter'] = C_param_range
plt.figure(figsize=(10, 10))
j = 0
for i in C_param_range: