In the field of Machine Learning, the Perceptron is a Supervised Learning Algorithm for binary classifiers. The Perceptron Model implements the following function:
For a particular choice of the weight vector and bias parameter , the model predicts output for the corresponding input vector .
NOT logical function truth table is of only 1-bit binary input (0 or 1), i.e, the input vector and the corresponding output –
Now for the corresponding weight vector of the input vector , the associated Perceptron Function can be defined as:
For the implementation, considered weight parameter is and the bias parameter is .
NOT(1) = 0 NOT(0) = 1
Here, the model predicted output () for each of the test inputs are exactly matched with the NOT logic gate conventional output () according to the truth table.
Hence, it is verified that the perceptron algorithm for NOT logic gate is correctly implemented.