반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- cudnn
- discrete_scatter
- 대이터
- CES 2O21 참여
- broscoding
- C언어
- html
- postorder
- web 사진
- java역사
- web 용어
- 자료구조
- inorder
- classification
- 웹 용어
- pycharm
- 데이터전문기관
- web
- vscode
- KNeighborsClassifier
- CES 2O21 참가
- Keras
- 머신러닝
- 재귀함수
- bccard
- web 개발
- tensorflow
- mglearn
- paragraph
- 결합전문기관
Archives
- Today
- Total
bro's coding
머신러닝.sigmoid function(3D) 본문
반응형
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure(figsize=[10,8])
ax = Axes3D(fig)
a = np.arange(-4,12,0.2)
b = np.arange(-4,12,0.2)
xx, yy = np.meshgrid(a,b)
ax.plot_surface(xx, yy, model.coef_[0,0]*xx + model.coef_[0,1]*yy + model.intercept_[0],
shade=True, alpha=0.1, color='b')
ax.plot_wireframe(xx, yy, model.coef_[0,0]*xx + model.coef_[0,1]*yy + model.intercept_[0],
rstride=2, cstride=2, color='0.5')
ax.scatter(X[:,0], X[:,1], y, c=y, s=60)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('target')
#ax.view_init(60, 70)
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure(figsize=[10,8])
ax = Axes3D(fig)
a = np.arange(-4,12,0.2)
b = np.arange(-4,12,0.2)
xx, yy = np.meshgrid(a,b)
ax.plot_surface(xx, yy, sigmoid(model.coef_[0,0]*xx + model.coef_[0,1]*yy + model.intercept_[0]),
shade=True, alpha=0.3, color='b')
ax.plot_wireframe(xx, yy, sigmoid(model.coef_[0,0]*xx + model.coef_[0,1]*yy + model.intercept_[0]),
rstride=2, cstride=2, color='0.5')
ax.scatter(X[:,0], X[:,1], y, c=y, s=60)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('target')
ax.view_init(20, -80)
반응형
'[AI] > python.sklearn' 카테고리의 다른 글
머신러닝.model 정리 (0) | 2020.04.14 |
---|---|
머신러닝.Linear SVM(선형 서포트벡터머신) 기초 (0) | 2020.04.14 |
머신러닝.크로스 엔트로피 (0) | 2020.04.13 |
머신러닝.soft max (0) | 2020.04.13 |
머신러닝.sigmoid function 적용 (0) | 2020.04.13 |
머신러닝.linear_model.LogisticRegression(Class=4)(iris) (0) | 2020.04.13 |
머신러닝.LogisticRegression.C option 변화 관찰 (0) | 2020.04.13 |
sklearn.linear_model.LogisticRegression(Class=3) (0) | 2020.04.13 |
Comments