You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
5.5 KiB

4 years ago
SVMԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
֧<><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(SVM)<29><>Vapnik<69><6B><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><E0BCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>µķdz<C4B7><C7B3>з<EFBFBD>չǰ<D5B9><C7B0><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><E0BCBC><EFBFBD><EFBFBD>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>˼<EFBFBD><CBBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<D5BC><E4A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD>ƽ<EFBFBD><C6BD>ʹ<EFBFBD><CAB9>ƽ<EFBFBD><C6BD><EFBFBD>벻ͬ<EBB2BB><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBF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FBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Կɷ<D4BF>ģʽ<C4A3><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC>п<EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD><CEAA><EFBFBD>Կɷ<D4BF>ģʽ<C4A3><CABD><EFBFBD>ù<EFBFBD><C3B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڻ<EFBFBD><DABB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ֳ<EFBFBD><D6B3>õĺ˺<C4BA><CBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ժ˺<D4BA><CBBA><EFBFBD><EFBFBD><EFBFBD>
K(X,Xp) = X' Xp<58><70><EFBFBD><EFBFBD>ʽ<EFBFBD>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD>K(X,Xp) = [(X Xp)+1]^qGauss<73>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD>K(X,Xp) = exp(- |X - X^p|^2/2<><32>^2)Sigmoid<69>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD>K(X,Xp) = tanh(k(X<><58>X^p))+c tanh(x)=(e^x - e^(-x))/(e^x + e^(-x))֧<><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧϰ<D1A7><EFBFBD><E3B7A8>(1)׼<><D7BC>һ<EFBFBD><D2BB>ѵ<EFBFBD><D1B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(x1,d1),(x2,d2),....,(xn,dn)(2)<29><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1d1+<2B><>2d2+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<EFBFBD><CFA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD>˿ɿ<CBBF><C9BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬʱ<CDAC><CAB1><EFBFBD><EFBFBD><EFBFBD>˺˾<CBBA><CBBE><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ濪<DAB4><E6BFAA><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD>ϵ<EFBFBD><CFB5>SVM<56><4D>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>SVM<56><4D><EFBFBD><EFBFBD><E3B7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><DEB8><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ż<EFBFBD><C5BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Եõ<D4B5><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>罫SVM<56><4D><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD>滻Ϊlogistic<69><63>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD>͵õ<CDB5><C3B5>˽ӽ<CBBD><D3BD><EFBFBD>logistic<69>ع<EFBFBD><D8B9><EFBFBD><EFBFBD>Ż<EFBFBD><C5BB><EFBFBD><EFBFBD>⡣SVM<56><4D>logistic<69>ع<EFBFBD><D8B9>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>logistic<69>ع<EFBFBD><D8B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>и<EFBFBD><D0B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壬Ҳ<E5A3AC><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2A3AC>SVM<56><4D>ϡ<EFBFBD><CFA1><EFBFBD>Ժ<EFBFBD><D4BA>ȶ<EFBFBD><C8B6><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õķ<C3B5><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ú˷<C3BA><CBB7><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>
<20><>Ϊ<EFBFBD>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>SVM<56><4D><EFBFBD><EFBFBD>Ψһ<CEA8><D2BB><EFBFBD><EFBFBD>ʹ<EFBFBD>ú˼<C3BA><CBBC>ɵĻ<C9B5><C4BB><EFBFBD>ѧϰ<D1A7><EFBFBD><E3B7A8>logistic<69>ع顢<D8B9><E9A1A2><EFBFBD>ع<EFBFBD><D8B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Linear DiscriminantAnalysis, LDA<44><41>Ҳ<EFBFBD><D2B2>ͨ<EFBFBD><CDA8><EFBFBD>˷<EFBFBD><CBB7><EFBFBD><EFBFBD>õ<EFBFBD><C3B5><EFBFBD>logistic<69>ع飨kernel logistic regression<6F><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ع飨kernel ridge regression<6F><6E><EFBFBD>ͺ<EFBFBD><CDBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Kernelized LDA, KLDA<44><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SVM<56>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD>Ϻ<EFBFBD>ѧϰ<D1A7><CFB0>ʵ<EFBFBD><CAB5>֮һ<D6AE><D2BB>
SVMӦ<EFBFBD>ã<EFBFBD>
SVM<56>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽʶ<CABD><CAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><E0A1A2>д<EFBFBD>ַ<EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣѧ<CFA2>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>SVM<56>ı<EFBFBD><C4B1><EFBFBD>ģ<EFBFBD><EFBFBD><E9A1A3><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><C3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>Ѷ<EFBFBD><D1B6><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LIBSVM<56><4D>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SVM<56><4D><EFBFBD>ߡ<EFBFBD>LIBSVM<56><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>׼SVM<56><EFBFBD><E3B7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ع顢<D8B9><E9A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SVM<56>ȹ<EFBFBD><C8B9>ܣ<EFBFBD><DCA3><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>JAVA<56><41>Python<6F><6E>R<EFBFBD><52>MATLAB<41><42><EFBFBD><EFBFBD><EFBFBD>Եĵ<D4B5><C4B5>ýӿڡ<D3BF><DAA1><EFBFBD><EFBFBD><EFBFBD>CUDA<44><41>GPU<50><55><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˲<EFBFBD><CBB2>м<EFBFBD><D0BC>㡢ģ<E3A1A2>ͽ<EFBFBD><CDBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>ȡ<EFBFBD>
<20><><EFBFBD><EFBFBD>Python<6F><6E><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>ѧϰģ<CFB0><C4A3>scikit-learn<72>ṩԤ<E1B9A9><D4A4>װ<EFBFBD><D7B0>SVM<56><4D><EFBFBD>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʋο<C6B2><CEBF><EFBFBD>LIBSVM<56><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SVM<56><4D>Pythonģ<6E><C4A3><EFBFBD><EFBFBD>MDP<44><50>MLPy<50><79>PyMVPA<50>ȡ<EFBFBD>TensorFlow<6F>ĸ߽<C4B8>API<50><49><EFBFBD><EFBFBD>Estimators<72><73><EFBFBD>ṩSVM<56>ķ<EFBFBD>װģ<D7B0>͡<EFBFBD>
SVMʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# Example<6C><65>
from sklearn import datasets
import numpy
from numpy import *
from sklearn import svm
print ('''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD>''')
digits = datasets.load_digits()
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>digits<74><73><EFBFBD>ݼ<EFBFBD><DDBC>У<EFBFBD>digits.data<74>ǿ<EFBFBD><C7BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
print(digits.data,"type(digits.data)=%s"%type(digits.data))
print("shape(digits.data)=%s,%s"%shape(digits.data))
print (digits.target)
print ('''ѵ<><D1B5><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>''')
#ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
clf = svm.SVC(gamma=0.0001,C=100)
# <20><><EFBFBD><EFBFBD>ѵ<EFBFBD><D1B5>
clf.fit(digits.data[:-1],digits.target[:-1])
# <20><><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>
print (clf.predict(digits.data[:-1]))