Artificial Intelligence - هوش مصنوعی

Artificial Intelligence - هوش مصنوعی (http://artificial.ir/intelligence/)
-   يادگيري ماشيني(Machine learning ) (http://artificial.ir/intelligence/forum74.html)
-   -   کد متلب svm جداکننده خطی بدون خطا (http://artificial.ir/intelligence/thread12311.html)

maraa ۰۹-۵-۱۳۹۲ ۱۲:۲۲ بعد از ظهر

کد متلب svm جداکننده خطی بدون خطا
 
سلام

کسی هست کدsvmtrain را در متلب برام توضیح بده
میخواستم بدونم svm بدون در نظر گرفتن پارامتر خطا کدش چطوریه

و کدش با درنظرگرفتن پارامتر خطا یعنی اپسیلون به چه صورت و چقد میتونه نتیجش نسبت به قبلی بهتر باشه
پارامتر اپسیلون چطوری بدست میاد؟

خواهش میکنم جواب بدید دوستان:40:

f_sadati ۰۴-۲۳-۱۳۹۵ ۰۷:۳۹ بعد از ظهر

سلام یک لینک پاورپوینت تو سایت هست باز نمیشه در رابطه با svm
برای یک پروژه ی پایتون، svm رو باید کار کنم کد پایتون یکسری از اصطلاهات کاربردشو بلد نیستم.
# we create 40 separable points
np.random.seed(0)
X = np.r_[np.random.randn(20, 2) - [2, 2], np.random.randn(20, 2) + [2, 2]]
Y = [0] * 20 + [1] * 20

# fit the model
clf = svm.SVC(kernel='linear')
clf.fit(X, Y)

# get the separating hyperplane
w = clf.coef_[0]
a = -w[0] / w[1]
xx = np.linspace(-5, 5)
yy = a * xx - (clf.intercept_[0]) / w[1]

# plot the parallels to the separating hyperplane that pass through the
# support vectors
b = clf.support_vectors_[0]
yy_down = a * xx + (b[1] - a * b[0])
b = clf.support_vectors_[-1]
yy_up = a * xx + (b[1] - a * b[0])

# plot the line, the points, and the nearest vectors to the plane
plt.plot(xx, yy, 'k-')
plt.plot(xx, yy_down, 'k--')
plt.plot(xx, yy_up, 'k--')

plt.scatter(clf.support_vectors_[:, 0], clf.support_vectors_[:, 1],
s=80, facecolors='none')
plt.scatter(X[:, 0], X[:, 1], c=Y, cmap=plt.cm.Paired)

plt.axis('tight')
plt.show()

f_sadati ۰۴-۲۳-۱۳۹۵ ۰۷:۴۶ بعد از ظهر

http://artificial.ir/intelligence/thread4706-3.html
لینک پاورپوینت که تو سایت هست ولی باز نمیشه


زمان محلي شما با تنظيم GMT +3.5 هم اکنون ۰۹:۰۵ بعد از ظهر ميباشد.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.