- File Size:
- Uploaded by:
Description: 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.
(Click to check if it's the file you need, and recomment it at the bottom):
|L2_1.py|| 2068 || 2020-04-20|