正在加载图片...
-5- Problem 2:Arrays(20 points) Note:once you understand this problem,the coding is fairly simple and not long.The best strategy is to read the whole thing for understanding,without thinking about code.Then write the code when you are ready. In this problem you will program a simple"neural net".Neural nets are programs that simulate the operation of some of the circuits in the brain,and large complicated nets can learn over time to do tasks like recognize handwriting or select stocks. We won't be able to delve into anything that complicated here on the exam.But the simple system we will show you will give you the idea,while it tests your skill with arrays. The kind of system we are concerned with is called a perceptron,and we could diagram one like this: Stimulus units Association units Response units (S-units) (A-units) (R-units) Weighted A-to-R connections The job of a perceptron is to take in a"stimulus"and classify it.For example,the stimulus might be a representation of a handwritten character,and the classification might be the identification of what letter it is.In the diagram above,the stimulus comes in at the left in the "S-units",and the classification is made at the right,in the"R-units".Here is how it works. The S-units are just an array of ints,and they will have values that are 1 or 0.For some perceptrons,the S-units form a rectangular pattern and could be thought of as simulating a retina,but we will just use a one-dimensional array.– 5 – Problem 2: Arrays (20 points) Note: once you understand this problem, the coding is fairly simple and not long. The best strategy is to read the whole thing for understanding, without thinking about code. Then write the code when you are ready. In this problem you will program a simple "neural net". Neural nets are programs that simulate the operation of some of the circuits in the brain, and large complicated nets can learn over time to do tasks like recognize handwriting or select stocks. We won’t be able to delve into anything that complicated here on the exam. But the simple system we will show you will give you the idea, while it tests your skill with arrays. The kind of system we are concerned with is called a perceptron, and we could diagram one like this: The job of a perceptron is to take in a "stimulus" and classify it. For example, the stimulus might be a representation of a handwritten character, and the classification might be the identification of what letter it is. In the diagram above, the stimulus comes in at the left in the "S-units", and the classification is made at the right, in the "R-units". Here is how it works. The S-units are just an array of ints, and they will have values that are 1 or 0. For some perceptrons, the S-units form a rectangular pattern and could be thought of as simulating a retina, but we will just use a one-dimensional array. . . . Stimulus units Association units Response units (S-units) (A-units) (R-units) Weighted A-to-R connections
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有