Introduction - If you have any usage issues, please Google them yourself
Write a function called Perce to implement perceptron algorithm.
The input / output of the function are:
(a) An n * d-dimensional matrix X whose I th row is the I th data vector;
(b) The first element of an n-dimensional column vector y, y contains a class (- 1,1), and the class corresponds to the corresponding vector;
(c) Use the vector W_ Ini initializes the parameter vector and returns the estimated parameter vector;
Suppose that the maximum number of iterations of the function is 10000.