Introduction - If you have any usage issues, please Google them yourself
The purpose of this study is to learn and master the two kinds of perceptron algorithm: batch sensor algorithm and batch processing margin slack
Algorithm. Perceptron algorithm is by learning two kinds of labeled samples, the establishment of a linear classifier. The process of learning is the process of solving the perceptron weights, people through the establishment of a criterion function J (a), the weighting coefficients for solving perceptron problem is reduced to a minimization problem for a scalar function J (a), i.e. when a solution vector, J (a) minimum. The minimization problem commonly used gradient descent method to solve. This paper gives two kinds of perceptron algorithm based on gradient descent method, introduces the principle and program implementation, and finally compares the characteristics of the two algorithms.