I just started a Machine learning class and we went over Perceptrons. For homework we are supposed to: "Choose appropriate training and test data sets of two dimensions (plane). Use 10 data points for training and 5 for testing. " Then we are supposed to write a program that will use a perceptron algorithm and output:
- a comment on whether the training data points are linearly separable
- a comment on whether the test points are linearly separable
- your initial choice of the weights and constants
- the final solution equation (decision boundary)
- the total number of weight updates that your algorithm made
- the total number of iterations made over the training set
- the final misclassification error, if any, on the training data and also on the test data
I have read the first chapter of my book several times and I am still having trouble fully understanding perceptrons.
I understand that you change the weights if a point is misclassified until none are misclassified anymore, I guess what I'm having trouble understanding is
- What do I use the test data for and how does that relate to the training data?
- How do I know if a point is misclassified?
- How do I go about choosing test points, training points, threshold or a bias?
It's really hard for me to know how to make up one of these without my book providing good examples. As you can tell I am pretty lost, any help would be so much appreciated.