#导入,处理数据集
import pandas as pd
import numpy as np
from sklearn import svm
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import train_test_split
dataset1=pd.read_excel("https://192.168.0.113:8443/oc9/index.php/s/g88pPagI4ecuEsI/download")
for i in range(np.shape(dataset1)[0]):
lei=dataset1.iloc[i,-1]
lei=lei.split(
sklearn SVM算法自动调优
最新推荐文章于 2024-07-05 09:09:44 发布
本文详细介绍了如何使用sklearn库中的SVM(支持向量机)进行机器学习,并通过网格搜索(GridSearchCV)进行参数调优,以提高模型的预测性能。通过实例展示了选择合适的C和gamma参数的重要性,以及如何平衡模型复杂度和泛化能力。
摘要由CSDN通过智能技术生成