Python Machine Learning Programming Chapter 2 Classification Problems-Machine Learning Algorithm Training Summary

Last story

Python Machine Learning Programming Chapter 1 Summary


Introduction

--What is dealt with in this chapter --Early machine learning algorithms --Perceptron - ADALINE

--Sample code - python-machine-learning-book/code/ch02/ch02.ipynb ――In the following summary, the code and formula are not described. I'm sorry.


2.1 Artificial neurons

--History --McCulloch-Pitts Neuron (1943) --The purpose is to elucidate the mechanism of the biological brain --The first concept of a simplified brain cell --The first concept of Perceptron's learning rules (1957) - Frank Rosenblatt --After automatically learning the optimum weighting factor, it is multiplied by the input signal to determine whether or not the neuron fires. --Binary classification task --Keywords --Total input --Activation function --Learning rules

  1. Initialize the weight with 0 or a small random number
  2. Perform the following steps for each training sample
  3. Calculate the output value y
  4. Update the weight --Perceptron convergence potential --Conditions --Is it linearly separable? -Is the learning rate small enough? --If it does not converge --Set maximum number of epochs and misclassifications

2.2 Implement the Perceptron learning algorithm in Python

--Text reference


2.3 Training of Perceptron model on Iris dataset

--Binary classification with Iris data --One-vs-all method for multi-class classification --Text reference


2.4 ADALINE and learning convergence

--Improved perceptron algorithm --Specifically show the definition of the cost function and the concept of its minimization --Difference from Perceptron --How to update weights --Weight update based on linear activation function --Quantumizer --Class label prediction --Used for model error calculation and weight update --Perceptron --Binary class label - ADALINE --Continuous value output from linear activation function


2.5 Minimization of cost function by gradient descent

--Objective function --One of the main components of a supervised machine learning algorithm --Optimized during the learning process --Cost function --Used for weight learning --Sum of squared error --Advantages of this continuous value linear activation function --Differentiable --Convex function --Gradient descent method


2.5.1 Implement ADALINE in Python

--Text reference --Learning rate


2.6 Large-scale machine learning and stochastic gradient descent

--Batch gradient descent method --Overall training dataset --If the data set is too large, the calculation cost will be considerable. --Stochastic gradient descent (sequential gradient descent, online gradient descent) --Based on one data sample --Easy to get out of shallow minimum values --Randomly sort the data --Models can be trained on the spot when new data arrives (online learning) --Mini batch learning --Apply batch gradient descent to some of the training data (eg 50)


Reference book

-Python Machine Learning Programming


Thank you very much.

Recommended Posts

Python Machine Learning Programming Chapter 2 Classification Problems-Machine Learning Algorithm Training Summary
"Python Machine Learning Programming" Summary Note (Jupyter)
Machine learning algorithm classification and implementation summary
Python Machine Learning Programming> Keywords
<Course> Machine Learning Chapter 6: Algorithm 2 (k-means)
Machine learning with python (1) Overall classification
Machine learning summary by Python beginners
Python Machine Learning Programming Chapter 1 Gives Computers the Ability to Learn from Data Summary
Machine learning algorithm (implementation of multi-class classification)
Machine learning algorithm (linear regression summary & regularization)
Machine learning classification
Python learning memo for machine learning by Chainer Chapter 13 Neural network training ~ Chainer completed
Python & Machine Learning Study Memo ⑤: Classification of irises
Chapter 6 Supervised Learning: Classification pg212 ~ [Learn by moving with Python! New machine learning textbook]
Machine learning tutorial summary
Machine learning ⑤ AdaBoost Summary
Python: Supervised Learning (Classification)
Implemented in Python PRML Chapter 4 Classification by Perceptron Algorithm
Machine learning python code summary (updated from time to time)
Python learning memo for machine learning by Chainer from Chapter 2
Preparing to start "Python machine learning programming" (for macOS)
Summary of the basic flow of machine learning with Python
Python3 programming functions personal summary
Machine learning / classification related techniques
Machine learning with Python! Preparation
Python web programming article summary
Machine learning ② Naive Bayes Summary
Machine learning article summary (self-authored)
Python learning memo for machine learning by Chainer Chapter 7 Regression analysis
Python Competitive Programming Site Summary
Machine learning algorithm (simple perceptron)
A beginner's summary of Python machine learning is super concise.
Supervised machine learning (classification / regression)
Beginning with Python machine learning
Machine learning algorithm (support vector machine)
Machine learning ④ K-nearest neighbor Summary
Machine learning algorithm (logistic regression)
Python Crawling & Scraping Chapter 4 Summary
Python learning memo for machine learning by Chainer Chapter 8 Introduction to Numpy
Python learning memo for machine learning by Chainer Chapter 10 Introduction to Cupy
A memorandum of scraping & machine learning [development technique] by Python (Chapter 4)
A memorandum of scraping & machine learning [development technique] by Python (Chapter 5)
Python learning memo for machine learning by Chainer Chapter 9 Introduction to scikit-learn
[Language processing 100 knocks 2020] Chapter 6: Machine learning
Machine learning algorithm (support vector machine application)
Machine learning ① SVM (Support Vector Machine) Summary
Machine learning algorithm (multiple regression analysis)
<Course> Machine Learning Chapter 7: Support Vector Machine
Machine learning ③ Summary of decision tree
Machine learning algorithm (simple regression analysis)
100 Language Processing Knock 2020 Chapter 6: Machine Learning
Classification and regression in machine learning
<For beginners> python library <For machine learning>
Python: Preprocessing in Machine Learning: Overview
Machine learning algorithm (gradient descent method)
"Scraping & machine learning with Python" Learning memo
Python learning memo for machine learning by Chainer Chapter 13 Basics of neural networks
Python learning memo for machine learning by Chainer until the end of Chapter 2
I want to create a machine learning service without programming! Text classification
PRML Chapter 8 Product Sum Algorithm Python Implementation
Machine learning algorithm (generalization of linear regression)