ML之SVM:基于SVM(支持向量机)之SVC算法对手写数字图片识别进行预测
目录
-
- X_train = ss.fit_transform(X_train)
- X_test = ss.transform(X_test)
-
- lsvc = LinearSVC()
- lsvc.fit(X_train, y_train)
- y_predict = lsvc.predict(X_test)
-
- print('The Accuracy of Linear SVC is', lsvc.score(X_test, y_test))
-
- print(classification_report(y_test, y_predict, target_names=digits.target_names.astype(str)))
网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。
添加我为好友,拉您入交流群!
请使用微信扫一扫!