一、SVM理論
可見以下文章:
《機器學習——支持向量機SVM之線性模型》
《機器學習——支持向量機SVM之非線性模型低維到高維映射》
《機器學習——支持向量機SVM之非線性模型原問題與對偶問題》
《機器學習——支持向量機SVM之非線性模型原問題轉化為對偶問題》
《機器學習——支持向量機SVM之多類問題》
1、hard margin(在支持向量之間沒有其他的點)
?
2、soft margin(允許有點在支持向量之間,允許容錯率)
?
二、scikit-learn中的SVM處理線性數據
首先安裝scikit-learn庫:
pip --default-timeout=1000 install -i https://pypi.tuna.tsinghua.edu.cn/simple scikit-learn --trusted-host pypi.douban.com
https://www.bilibili.com/video/BV1QE41177AJ?p=5
?
?