针对iris数据集 SVM 不同核函数的比较
思路为:利用不同的核函数来训练不同的分类器,再通过分类器的预测准确率和运行时间来比较分类器的优劣。
需要用到的库为:numpy,pandas,matplotlib,time,sklearn.svm
实现代码用的:jupyter
需要记住的函数为:
1.pd.Categorical().codes将文本数据转化为易分析的数字。
2.train_test_split(random_state,trai...
原创
2019-01-13 19:45:06 ·
2884 阅读 ·
1 评论