7 장 sklearn
7.1 주요기능
- Classification:
- Applications: Spam detection, Image recognition.
- Algorithms: SVM, nearest neighbors, random forest
- Regression
- Applications: Drug response, Stock prices.
- Algorithms: SVR, ridge regression, Lasso
- Clustering
- Applications: Customer segmentation, Grouping experiment outcomes
- Algorithms: k-Means, spectral clustering, mean-shift
- Dimensionality reduction
- Applications: Visualization, Increased efficiency
- Algorithms: PCA, feature selection, non-negative matrix factorization
- Model selection
- Modules: grid search, cross validation, metrics
- Preprocessing
- Application: Transforming input data such as text for use with machine learning algorithms.
- Modules: preprocessing, feature extraction
7.2 sklearn.datasets
데이터 셋
데이터 로드 함수 데이터설명 참고 load_boston보스턴 집값 내장데이터 load_diabetes당뇨병 자료 load_linnerudlinnerud 자료 load_iris붓꽃자료 load_digits필기 숫자(digit)이미지 load_wine포도주(wine) 등급 load_breast_cancer유방암진단 자료 fetch_california_housing캘리포니아 집값 자료 인터넷 다운로드 fetch_covtype토지조사 자료 fetch_20newsgroups뉴스 그룹 텍스트 자료 fetch_olivetti_faces얼굴 이미지 자료 fetch_lfw_people유명인 얼굴 이미지 fetch_lfw_pairs유명인 얼굴 이미지 fetch_rcv1로이터 뉴스 말뭉치 fetch_kddcup99Kddcup 99 Tcp dump make_regression회귀분석용 가상데이터 make_classification분류용 make_blobs클러스터링용 데이터 형식: Bunch라는 클래스 객체로 생성
data: (필수) 독립 변수 ndarray 배열target: (필수) 종속 변수 ndarray 배열feature_names: (옵션) 독립 변수 이름 리스트target_names: (옵션) 종속 변수 이름 리스트DESCR: (옵션) 자료에 대한 설명
Example