Scikit-Learn 패키지의 소개

Scikit-Learn 패키지는 머신 러닝 교육 및 실무를 위한 파이썬 패키지로 다음과 같은 구성 요소들을 갖추고 있다.

  • 벤치마크용 샘플 데이터 세트
  • 데이터 전처리(preprocessing) 기능
  • Supervised learning
  • Unsupervised learning
  • 모형 평가 및 선택

자세한 내용은 다음 웹사이트를 참조한다.

scikit-learn 패키지에서 제공하는 머신 러닝 모형

scikit-learn 패키지의 장점은 다양한 머신 러닝 모형 즉, 알고리즘을 하나의 패키지에서 모두 제공하고 있다는 점이다. 다음은 scikit-learn 패키지에서 제공하는 머신 러닝 모형의 목록이다. 이 목록은 대표적인 것들만을 나열한 것이며 지속적으로 모형들이 추가되고 있다.

Supervised learning

  • http://scikit-learn.org/stable/supervised_learning.html

  • Generalized Linear Models

    경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
    어린이용이며, 설치가 필요없는 브라우저 게임입니다.
    https://s1004games.com

    • Ordinary Least Squares
    • Ridge/Lasso/Elastic Net Regression
    • Logistic regression
    • Polynomial regression
    • Perceptron
  • Linear and Quadratic Discriminant Analysis
  • Support Vector Machines
  • Stochastic Gradient Descent
  • Nearest Neighbor Algorithms
  • Gaussian Processes
  • Naive Bayes
  • Decision Trees
  • Ensemble methods
    • Random Forests
    • AdaBoost

Unsupervised learning

  • Gaussian mixture models
  • Manifold learning
  • Clustering
    • K-means
    • DBSCAN
  • Biclustering
  • Decomposing
    • Principal component analysis (PCA)
    • Factor Analysis
    • Independent component analysis (ICA)
    • Latent Dirichlet Allocation (LDA)
  • Covariance estimation
  • Novelty and Outlier Detection
  • Density Estimation

scikit-learn의 서브 패키지

scikit-learn 은 서브 패키지 단위로 별도의 기능을 제공하고 있다. 대표적인 서브 패키지와 기능을 나열하면 다음과 같다.

  • 자료 제공:
    • sklearn.datasets: 샘플 데이터 세트 제공
  • 자료 전처리:
    • sklearn.preprocessing: imputation, encoding 등 단순 전처리
    • sklearn.feature_extraction: Feature Extraction
  • 모형:
    • sklearn.base: Base classes and utility functions
    • sklearn.pipeline: Pipeline
    • sklearn.linear_model: Generalized Linear Models
    • sklearn.naive_bayes: Naive Bayes
    • sklearn.discriminant_analysis: Discriminant Analysis
    • sklearn.neighbors: Nearest Neighbors
    • sklearn.mixture: Gaussian Mixture Models
    • sklearn.svm: Support Vector Machines
    • sklearn.tree: Decision Trees
    • sklearn.ensemble: Ensemble Methods
    • sklearn.cluster: Clustering
  • 모형 평가:
    • sklearn.metrics: Metrics
    • sklearn.cross_validation: Cross Validation
    • sklearn.grid_search: Grid Search

scikit-learn의 Class

scikit-learn을 사용하기 위해서는 원하는 기능을 가지고 있는 클래스 객체를 생성해야 한다. scikit-learn은 다양한 클래스를 제공하지만 대부분의 클래스는 다음과 같이 세가지 그룹으로 나눌수 있다.

  • 전처리용 클래스
    • Transformer 클래스
      • 자료 변환
    • 공통 메서드
      • fit(): 모형 계수 추정, 트레이닝(training)
      • transform() : 자료 처리
      • fit_transform() : 모형 계수 추정 및 자료 처리 동시 수행
  • 머신러닝 모형 클래스 그룹
    • Regressor 클래스
      • 회귀분석
    • Classifier 클래스
      • 분류
    • Cluster 클래스
      • 클러스터링
    • 공통 메서드
      • fit(): 모형 계수 추정, 트레이닝(training)
      • predict(): 주어진 x값에 대해 y 예측
      • score(): 성과 분석
  • Pipeline 클래스
    • 복수의 Preprocessor와 Model을 연결하여 하나의 Model처럼 행동
    • Model 클래스가 제공하는 공통 메서드를 모두 제공
    • pipeline 내부에서 Preprocessor에서 자료를 계속 변형한 후 마지막으로 Model에 입력

[출처] https://datascienceschool.net/view-notebook/293ece8b0d124fbaa4d4d52bb8f1cb42/

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
38 [flask] wsgi를 이용한 Apache httpd 연동 file 졸리운_곰 2019.12.07 433
37 파이썬 플라스크 프레임워크 소개 졸리운_곰 2018.08.03 532
36 The Ultimate Flask Front-End – Part 2 file 졸리운_곰 2018.06.22 452
35 The Ultimate Flask Front-End file 졸리운_곰 2018.06.22 390
34 Flask-RESTPlus에서 REST API와 Swagger 문서를 통합 file 졸리운_곰 2018.05.22 722
33 Building beautiful REST APIs using Flask, Swagger UI and Flask-RESTPlus file 졸리운_곰 2018.05.22 747
32 [Python] Flask & flask-restplus && swagger ui file 졸리운_곰 2018.05.22 414
31 How to deploy python-flask in wampserver file 졸리운_곰 2018.02.14 367
30 The Ultimate Flask Front-End - Part 2 file 졸리운_곰 2017.10.06 841
29 The Ultimate Flask Front-End file 졸리운_곰 2017.10.06 464
28 Create a scikit-learn based prediction webapp using Flask and Heroku file 졸리운_곰 2017.08.22 454
27 How to deploy python-flask in wampserver file 졸리운_곰 2017.07.22 529
26 Welcome to Flask-MySQLdb’s documentation! 졸리운_곰 2017.07.22 352
25 Flask에서 SQLAlchemy 사용하기 졸리운_곰 2017.07.22 502
24 Flask에서 SQLite 3 사용하기 졸리운_곰 2017.07.22 622
23 How To Set Up an Apache, MySQL, and Python (LAMP) Server Without Frameworks on Ubuntu 14.04 졸리운_곰 2017.07.22 462
22 flask-simple-image-gallery 가을의곰 2017.06.10 453
21 Flask Quick Start, 플라스크 빠르게 해보기 졸리운_곰 2017.05.01 416
20 Application Skeleton for Flask and AngularJS file 졸리운_곰 2017.02.06 596
19 Flask by Example - Integrating Flask and Angular file 졸리운_곰 2017.02.06 1002
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED