[PYTHON] Classification and regression in machine learning

Good evening. The Airpots loss incident (found) happened earlier, and a paragraph was added.

Today I would like to summarize the classification and regression in machine learning.

About classification

The main purpose of classification is ** to predict the class (Yes, No) to which the data belongs **. If the number of classes to be predicted is two, it is called ** binary classification **. ex) --Determine whether or not to withdraw a subscription from the user's usage history. ――Whether the student's profile passes or fails --Email information, is it spam or spam?

If there are more than two classes, it is called a ** multiclass classification **. ex) --Student evaluation --Image recognition

About regression

The main purpose of regression is ** value prediction **. More deeply, the task of explaining ** explanatory variables (features) ** to ** objective variables **. ex) --Explanation of math scores with science scores. (Explanatory variable: science score, objective variable: math score) --Explanation of rent by property size and area. (Explanatory variables: size and area, objective variables: rent)

And if you want to embark on linear regression, Assuming that the objective variable is y and there are n explanatory variables, $ x_1 $, $ x_2 $, ..., $ x_n $,

y = a_0 + a_1x_1 +・ ・ ・+ a_nx_n

, $ A_0, a_1, ···, a_n $. In order to obtain these, there are ** maximum likelihood method ** and ** least squares method **. Also, when $ n = 1 $, it is called ** simple regression **, and the others are called ** multiple regression **.

Example of difference

Let me give you an example of the references below. Suppose you have information about a restaurant that your customer has visited in the past. Classification: Predict whether you like or don't like new restaurants Regression: Predict how many times you will visit a new restaurant in the future

Two things in common

Finally, I would like to mention two things in common. Both are "** supervised learning **". By the way, supervised learning is learning using the correct label attached to the data.

It's easy, but I've summarized the classification regression. Thank you very much.

References

Differences between classification and regression for beginners in machine learning

Recommended Posts

Classification and regression in machine learning
Supervised machine learning (classification / regression)
Machine learning classification
Machine learning algorithm classification and implementation summary
Machine learning logistic regression
Machine learning linear regression
Machine learning in Delemas (practice)
Machine learning / classification related techniques
Machine Learning: Supervised --Linear Regression
Difference between regression and classification
Understand machine learning ~ ridge regression ~.
Used in machine learning EDA
Machine learning and mathematical optimization
Machine learning stacking template (regression)
Machine learning algorithm (logistic regression)
Coursera Machine Learning Challenges in Python: ex2 (Logistic Regression)
Coursera Machine Learning Challenges in Python: ex1 (Linear Regression)
Significance of machine learning and mini-batch learning
Machine learning with python (1) Overall classification
Automate routine tasks in machine learning
Machine learning beginners try linear regression
Machine learning algorithm (multiple regression analysis)
Machine learning
Pre-processing in machine learning 3 Missing values, outliers, and imbalanced data
Organize machine learning and deep learning platforms
Machine learning in Delemas (data acquisition)
Python: Preprocessing in Machine Learning: Overview
Preprocessing in machine learning 2 Data acquisition
Random seed research in machine learning
[Machine learning] Understanding logistic regression from both scikit-learn and mathematics
Preprocessing in machine learning 4 Data conversion
[Machine learning] Understanding linear simple regression from both scikit-learn and mathematics
[Machine learning] Understanding linear multiple regression from both scikit-learn and mathematics
"Gaussian process and machine learning" Gaussian process regression implemented only with Python numpy
<Course> Machine Learning Chapter 3: Logistic Regression Model
[Machine learning] OOB (Out-Of-Bag) and its ratio
Memorandum about regression and binary classification metrics
Machine learning with python (2) Simple regression analysis
Python: Preprocessing in machine learning: Data acquisition
Machine learning algorithm (implementation of multi-class classification)
Personal notes and links about machine learning ① (Machine learning)
<Course> Machine Learning Chapter 1: Linear Regression Model
Python and machine learning environment construction (macOS)
<Course> Machine Learning Chapter 2: Nonlinear Regression Model
Stock price forecast using machine learning (regression)
[Python] Saving learning results (models) in machine learning
Python: Preprocessing in machine learning: Data conversion
"OpenCV-Python Tutorials" and "Practical Machine Learning System"
Machine learning algorithm (linear regression summary & regularization)
Preprocessing in machine learning 1 Data analysis process
[Machine learning] Regression analysis using scikit learn
EV3 x Pyrhon Machine Learning Part 3 Classification
Supervised learning (classification)
[Memo] Machine learning
Python: Preprocessing in machine learning: Handling of missing, outlier, and imbalanced data
Machine Learning sample
Classification of guitar images by machine learning Part 1
Study machine learning and computer science. Resource list
Python & Machine Learning Study Memo ⑤: Classification of irises
Numerai Tournament-Fusion of Traditional Quants and Machine Learning-
Full disclosure of methods used in machine learning