資源簡介
Python編寫的SVM算法,SVM算法的實現,適合直接使用,開放源代碼,Supported Vector Machine。
(Python code SVM algorithm,SVM algorithm realizition,easy to use,open source,Supported Vector Machine。)

代碼片段和文件信息
#-*-encoding:utf-8?-*-
import?sys
sys.path.append(‘E:\BaiduNetdiskDownload\libsvm-3.22\libsvm-3.22\python‘)
from?svmutil?import?*
yx?=?svm_read_problem(‘../heart_scale‘)
m?=?svm_train(y[:200]x[200]?‘-c?4‘)
p_labelp_accp_val?=?svm_predict(y[200:]x[200:]m)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-11-09?21:41??.idea\
?????目錄???????????0??2017-11-09?20:57??.idea\inspectionProfiles\
?????文件?????????235??2017-11-09?20:57??.idea\misc.xm
?????文件?????????270??2017-11-09?20:56??.idea\modules.xm
?????文件?????????481??2017-11-09?20:57??.idea\pythonprj.iml
?????文件???????19640??2017-11-09?21:41??.idea\workspace.xm
?????目錄???????????0??2017-11-09?21:33??python\
?????目錄???????????0??2017-11-09?20:53??python\.idea\
?????目錄???????????0??2017-11-08?11:16??python\.idea\inspectionProfiles\
?????文件?????????235??2017-11-09?15:17??python\.idea\misc.xm
?????文件?????????264??2017-11-08?11:15??python\.idea\modules.xm
?????文件?????????481??2017-11-09?15:17??python\.idea\python.iml
?????文件???????21450??2017-11-09?20:53??python\.idea\workspace.xm
?????文件?????????273??2017-11-09?21:27??python\copy.py
?????文件????????1142??2017-11-09?21:31??python\cross_validation.py
?????文件?????????582??2017-11-09?21:33??python\Makefile
?????文件????????5023??2008-02-19?07:09??python\README.txt
?????文件????????2112??2017-11-09?21:31??python\svm_test.py
?????文件????????2731??2007-03-31?08:31??python\svmc.i
?????文件??????169031??2007-03-31?08:31??python\svmc_wrap.c
?????文件?????????632??2017-11-09?21:31??python\test_cross_validation.py
?????文件????????8140??2006-12-08?22:37??python\x_svm.py
- 上一篇:python拼圖游戲
- 下一篇:純python實現的AES加解密
評論
共有 條評論