Perceptron.java:
a. Test: In the main() method, instantiate a few Perceptron objects and print the number of inputs for each object.
2. Implement the String toString() method.
a. Test: In the main() method, print the various Perceptron objects. What should the output be for a newly instantiated Perceptron object?
3. Implement the double weightedSum(double[] x) method.
a. Test: In the main() method, print the result of invoking the weightedSum method on the various Perceptron objects (using, of course, appropriately sized arrays.
4. Implement the int predict(double[] x) method.
5. Implement the void train(double[] x, int label) method. Note - train should call predict.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here