西瓜数据集3.0α # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from sklearn import svm import pandas as pd from sklearn.metrics import accuracy_score#返回正确的比例 from sklearn.preprocessing import LabelEncoder plt.rcParams['font.sans-serif'] = ['SimHei'] #用来正常显示中文标签 plt.rcParams['ax