일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- KNeighborsClassifier
- vscode
- 머신러닝
- Keras
- 대이터
- 결합전문기관
- html
- 웹 용어
- broscoding
- 데이터전문기관
- web 용어
- classification
- 자료구조
- paragraph
- pycharm
- web
- postorder
- inorder
- bccard
- CES 2O21 참여
- cudnn
- discrete_scatter
- java역사
- mglearn
- CES 2O21 참가
- tensorflow
- C언어
- web 사진
- 재귀함수
- web 개발
- Today
- Total
목록분류 전체보기 (689)
bro's coding
import numpy as np iris_labels = ['Iris-setosa', 'Iris-versicolor', 'Iris-virginica'] iris = np.loadtxt('iris.csv', skiprows=1, delimiter=',', converters={4: lambda s: iris_labels.index(s.decode())}) # iris = np.loadtxt('iris.csv', skiprows=1, delimiter=',', # converters={4: lambda s: labels.index(s)}, encoding='utf-8') # latin1, ascii, utf-8, cp949

from sklearn.neighbors import KNeighborsClassifier X=iris[:,:4] y=iris[:,4] knn=KNeighborsClassifier() knn.fit(X,y) knn.score(X,y) knn.predict(X) from sklearn.linear_model import LinearRegression linear=LinearRegression() linear.fit(iris[:,[2]],iris[:,3]) 기울기 = linear.coef_[0] 절편 = linear.intercept_ 기울기, 절편 plt.scatter(iris[:,2],iris[:,3]) plt.xlabel('PetalLength') plt.ylabel('PetalWidth') plt.p..

plt.subplot(2,2,1) plt.title('SepalLength') plt.hist(iris[:,0],bins=30) plt.subplot(2,2,2) plt.title('SepalWidth') plt.hist(iris[:,1], bins=30) plt.subplot(2,2,3) plt.title('PetalLength') plt.hist(iris[:,2],bins=30) plt.subplot(2,2,4) plt.title('PetalWidth') plt.hist(iris[:,3],bins=30)

plt.plot(iris[:50,:4].T,'r-',alpha=0.1) plt.plot(iris[50:100,:4].T,'g-',alpha=0.1) plt.plot(iris[100:150,:4].T,'b-',alpha=0.1) pass plt.plot(iris) plt.legend(iris_pd.columns)

import matplotlib.pyplot as plt plt.scatter(iris[:,2],iris[:,3],c=iris[:,4],s=iris[:,1]+100,alpha=0.2) #우측에 bar표시 plt.colorbar() plt.title('SepalLength Vs SepalWidth') plt.xlabel('SepalLength') plt.ylabel('SepalWidth')

NUMPY MATPLOTLIB PANDAS 수치데이터 분석 정방형 데이터 고차원 데이터 머신러닝 작업 시각화 다양한 그래프 문자/숫자 데이터 2차원 표형태 데이터 데이터베이스 작업 통게 분석 import numpy as np import matplotlib.pyplot as plt import pandas as pd
a.shape=[5,4,3,2,1] a.ndim=5(dimension)