main.m436 chars17 lines
This is a simple implementation of the perceptron algorithm in MATLAB. Make sure to pass the input features X
, target labels y
, learning rate, and number of epochs as arguments to the function. The function will return the learned weights and bias.
gistlibby LogSnag