python: Basics of using scikit-learn ①

This time it will be the heart of machine learning I will post about scikit-learn.

Overview of scikit-learn

Read as Cykit Learn. A Python machine learning library.

Cheat sheet

About the analysis (classification, regression, etc.) that you want to perform A cheat sheet that allows you to easily select a model.

image.png

Classification

Determine which class it belongs to.

SGD(stochastic gradient descent) For more than 100,000 data Linear classification method

Kernel approximation

For more than 100,000 data If SGD doesn't work Non-linear classification method

Linear SVC For less than 100,000 Linear classification method

k-nearest neighbor method

For less than 100,000 If Linear SVC doesn't work This is a non-linear classification method.

Naive bayes

For text data

Regression

Prediction of target value

SGD(stochastic gradient descent) For more than 100,000 data Linear regression analysis method

LASSO、ElasticNet For less than 100,000 When some of the explanatory variables are important Regression analysis method

Ridge、Liner SVR For less than 100,000 When all the explanatory variables are important Regression analysis method

SVR (Gaussian kernel), Ensemble

If Ridge or Liner SVR doesn't work Non-linear regression analysis method

Clustering

Things to divide according to some rules

KMeans When it is possible to decide in advance how many clusters to divide into Clustering analysis method

MiniBatch For more than 100,000 data A method of learning while dividing data

Spectral clustering, GMM

If KMeans doesn't work Non-linear clustering analysis method.

MeanShift、VBGMM When it is not possible to decide in advance how many clusters to divide into It is a clustering analysis method.

Other

Dimensionality reduction

In the pretreatment process We will do it to improve learning efficiency

PCA, kernel PCA, Isomap, Spectral Embedding, etc.

Hyperparameter optimization

Adjustment values such as learning methods are called "hyperparameters".

There are methods such as grid search and cross validation.

Recommended Posts

python: Basics of using scikit-learn ①
Basics of Python ①
Basics of python ①
Python: Basics of image recognition using CNN
# 4 [python] Basics of functions
Basics of python: Output
Basics of Python × GIS (Part 1)
Python basics ⑤
Python basics
Python basics ④
Python basics ③
Python basics
Python basics
Python basics
Python basics ③
Python basics ②
Python basics ②
Basics of Python x GIS (Part 3)
Paiza Python Primer 5: Basics of Dictionaries
Image capture of firefox using python
Removal of haze using Python detailEnhanceFilter
Getting Started with Python Basics of Python
Review of the basics of Python (FizzBuzz)
Basics of Python x GIS (Part 2)
Implementation of desktop notifications using Python
About the basics list of Python basics
Learn the basics of Python ① Beginners
[Python] Extension using inheritance of matplotlib (NavigationToolbar2TK)
Python basics: list
Introduction of Python
Python basics memorandum
Automatic collection of stock prices using python
About building GUI using TKinter of Python
(Bad) practice of using this in Python
[Learning memo] Basics of class by python
[Python3] Understand the basics of Beautiful Soup
Python: Application of image recognition using CNN
Python CGI basics
Python basics: dictionary
Start using Python
Using Azure ML Python SDK 5: Pipeline Basics
Python slice basics
#Python basics (scope)
#Python basics (#Numpy 1/2)
Copy of python
#Python basics (#Numpy 2/2)
The basics of running NoxPlayer in Python
Basics of Tableau Basics (Visualization Using Geographic Information)
[Basics of python basics] Why do __name__ == "__main__"
#Python basics (functions)
Python array basics
Study on Tokyo Rent Using Python (3-1 of 3)
Python profiling basics
Python #Numpy basics
[Python] Chapter 02-04 Basics of Python Program (About Comments)
Python basics: functions
Scraping using Python
#Python basics (class)
[Python] Chapter 02-03 Basics of Python programs (input / output)
Python basics summary
[Introduction to Data Scientists] Basics of Python ♬