# -*- coding: utf-8 -*- from sklearn.svm import SVC import numpy as np print(X.shape,Y.shape) X = np.random.random((10,5)) #训练数据 Y = np.array([1,0,1,0,1,0,1,0,1,0]) #训练标签 T = np.random.random((20,5)) #预测数据 print(X.shape,Y.shape) svc=SVC(kernel='poly'…