Beruflich Dokumente
Kultur Dokumente
In this lab, you will learn a few basic functionalities of Matlab Neural Network Toolbox. Firstly, you will use a few coding lines to create a single neuron. Secondly, you will use an automatic fitting functionality of the NN Toolbox to solve a more difficult problem. Lab reports are due on Wednesday, July 24.
Conceptualizing
1. 2. Draw a neural with two inputs and one output. Calculate the net inputs of the neuron if: a. W = [1 2], b=0 i. p1 = 2, p2 = 1 ii. p1 = 2, p2 = 3 iii. p1 = 6, p2 = 1 iv. p1 = 2, p2 = 3 b. W = [2 3], b=2 i. p1 = 2, p2 = 3 ii. p1 = -1, p2 = 2 iii. p1 = -2, p2 = -3
A = net(P) Now change W and b to, W = [2 3] and b = 2. Use inputs p1 = -2, p2 = -3 to calculate new output. 6. Change W back to W = [1 2]. 7. Change input vector to P = [1 2;2 1] and calculate the output. 8. How has the output changed from the previous calculation? 9. Set P = [1 2 2 3; 2 1 3 1] and calculate output. 10. What do the rows and columns of P represent? 11. What is the difference between P in 9. and P = [1; 2; 2; 3; 2; 1; 3; 1]? Would this input work for this neural? 12. If you have an appropriate neural and inputs, P = [1; 2; 2; 3; 2; 1; 3; 1], how would the output be different from 9.? 5.
13. Percent lower status of the population houseTargets - a 1x506 matrix of median values of owner-occupied homes in each neighborhood in 1000's of dollars. (This data is available from the UCI Machine Learning Repository http://mlearn.ics.uci.edu/MLRepository.html) 1. 2. 3. 4. 5. 6. 7. 8. Start the Matlab fitting tool by using the command nftool; Go through the prompts and give the included files as input and output, accordingly. Once data is imported, go through prompts and set each of the validation and test sets to 15% of the total sample. Describe the roles of the validation set and test set of a neural network. Work through the prompts and set the number of hidden layers to 10. Train the system. Work through the prompts and plot the performance of the network. Describe this plot. Work through the prompts and generate the simple script.