Some studies in machine learning using the game of Checkers · PDF

kaynak: jeo.kompas.com
PDF görünümü Sayfa metni Paylaş Orijinal PDF ↗
/ 20

SAYFA 2 / 20

536 Improving the Efficiency of a Problem Solver explorations of every possible path through a checker given board position. The indicated moves are explored game would involve perhaps 10.111 choices of moves in turn by producing new hoard-position records cor- which. at 3 choices per millimicrosecond. would still take responding .to the conditions after the move in question 1O~I centuries to consider. (the old board positions being saved to facilitate a return (2) A definite goal must exist-the winning of the to the starting. poinn and the process can be repeated. game-and at least one criterion or intermediate goal This look-ahead procc;dure is carried several moves in must exist which has' a bearing on the achievement of the advance, as illustrated in Fig. ·1.. The resulting board pe- final goal and for which the sign should be known. In sitions are then scored in terms of their relative value to checkers the goal is to deprive the opponent of the pos- the machine. sibility of moving, and the dominant criterion is the The standard method of scoring the resulting board number of pieces of each color on the board. The im- positions has been in terms of a linear polynomial. A portance of having a known criterion will be discussed number of schemes of an abstract sort were tried for later. evaluating board positions without regard to the usual (3) The rules of the activity must be definite and they checker concepts, but none of these was suecessfuI.IO should be known. Games satisfy this requirement. Un- One way of looking at the various terms in the scoring fortunately, many problems of economic importance do polynomial is that those terms with numerically small not. While in principle the determination of the rules can coefficients should measure criteria related as intermedi- be a part of the learning process, this is a complication ate goals to the criteria measured l'y the larger terms. which might well be left until later. The achievement of these intermediate goals indicates (4) There should be a background of knowledge con- that the machine is going in the right direction, such that cerning the activity against which the learning progress the larger terms win. eventually increJse. If the program can be tested. could look far enough ahead we need only ask, "Is the game?,~J.l Since it cannot look this (5) The activity should be one that is familiar to a machine still in' 'the substantial body of people so that the behavior of the far ahead in the usual situation, we must substitute some- program can be made understandable to them. The thing else, say the piece ratio, and let the machine con- ability to have the program play against human oppo- tinue the look-ahead until one side has gained a piece nents (or antagonists) adds spice to the study and, inci- advantage. But even this is not always possible, so we dentally, provides a convincing demonstration for those have the program test to see if the machine has gained a who do not believe that machines can learn. positional advantage, et cetera. Numerical measures of Having settled on the game of checkers for our learn- these various properties of the board positions are then ing studies, we must, of course, first program the com- added together (each with an appropriate coefficient puter to play legal check ~rs; that is, we must express the which defines its relative importance) to form the evalu- rules of the game in macl:Jine language and we must ar- ation polynomial. range for the mechanics. of accepting an opponent's More 3pecifically, as defined by the rules for checkers, moves and of reporting the computer's moves, together the dominant scoring parameter is the inability for one with all pertinent data desired by the experimenter. The side or the other to move,12 Since this can occur but once general methods for doing this were described by in any game, it is tested for separately and is not included ShannonH in 1950 as applied to chess rather than check- in the scoring polynomial as tabulated by the computer ers. The basic program used in these experiments is quite during play. The next parameter to be considered is the similar to the program described by Strachey9 in 1952. relative piece advantage. It is always assumed that it is The availability of a larger and faster machine (the to the machine's advantage to reduce the number of the IBM 704), coupled with many detailed changes in the opponent's pieces as compared to its own. A reversal of programming procedure, leads to a fairly interesting the sign of this. term will, in fact, cause the program to game being played, even without any learning. The basic play "give-away" checkers, and with learning it can only forms of the program will now be described. learn to playa better and better give-away game. Were the sign of this term not known by the programmer it The basic checker-playing program could. of course, be determined by tests, but it must be fixed by the experimenter and, in effect, it is one of the The computer plays by looking ahead a few moves and instructions to the machine defining its task. The nu- by evaluating the resulting board positions much as a merical computation of the piece advantage has been ar- human player might do. Boal d positions are stored by ranged in such a way as to account for the well-known sets of machine words. four words normally being used property that it is usually to one's advantage to trade to represent any particular board position. Thirty-two bit pieces when one is ahead and to avoid trades when positions (of the 36 available in an IBM 704 word) are, behind. Furthermore, it is assumed that kings are more by convention, assigned to the 32 playing squares on the valuable than pieces, the relative weights assigned to checkerboard, and pieces appearing on these squares are them being three to twO. 13 This ratio means that the represented by I's appearing in the assigned bit positions program will trade three men for two kings, or two of the corresponding word. "Looking-ahead" is prepared kings for three men. if by so doing it can obtain some for by computing all possible next moves, starting with a positional advantage. -