4.3.3 Some Studies in Machine Learning Using the Game of Checkers 543
is that we arc attempting to make the score, calculatet! had been made of Alpha's current scoring polynomial to
for the current boart! position. look like that calculated determine Alpha's moves but not to determine the oppo-
for the terminal hoard position of the chain of moves nent's moves, while during the anticipation play the
which most probably will occur t!uring actual play. Of moves for hoth sides are made using Alpha's scoring
course, if one coult! t!evelop a perfect system of this sort polynomial. One is tempted to increase the sensitivity of
it would be the equivalent of always looking ahead to delta as an indicator of change by increasing the span of
the end of the game. The nearer this it!eal is approachet!, the remembered portion. This has been found to be
the better would be the play.l.~ dangerous since the coefficients in the evaluation poly-
In order to obtain a sufficiently large span to make use nomial and, indeed. the terms themselves, may change
of this characteristic, Alpha keeps a record of the ap- between the time of the remembered evaluation and the
parent goodness of its board positions as the game pro- time at which the anticipation evaluation is made, As a
gresses. This record is kept by computing the scoring matter of fact, this difficulty is present even for a span
polyno'mial for each board position encountered in actual of one move-pair. It is necessary to recompute the scor-
play and by saving this polynomial in its entirety. At the ing polynomial for a given initial board position after a
same time, Alpha also computes the backed-up score for move has been determined and after the indicated cor~
all board positions, using the look-ahead procedure de- rections in the scoring polynomial have been made, and
scribed earlier. At each play by Alpha the initial board to save this score for future comparisons, rather than to
score, as saved from the previous Alpha move, is com- save the score used to determine the move. This may
pared with the backed-up score for the current position. seem a trivial point, but its neglect in the initial stages
The difference between these scores, defined as delta, is of these experiments led to oscillations quite analogous
used to check the scoring polynomial. If delta is positive to the instability inouced iri electrical circuits by long
it is reasonable to assume that the initial board evalua- delays in a feedback loop.
tion was in error and terms which contributed positively As a means of stabilizing against 'minor variations in
shoult! have been given more weight, while those that the delta values, an arbitrary minimum value was set,
contributed negatively should have been given less and when delta fell below this minimum for any par-
weight. A converse statement can be made for the case ticular move no change was made in the polynomial.
where delta is negative. Presumably, in this case, either This same minimum value is used to set limits for the
the initial board evaluation was incorrect, or a wrong initial board evaluation score to decide whether or not
it will be assumed to be zero. This minimum is recom-choice of moves was made, and greater weight should
puted each time and, normally, has been fixed at thehave been given to terms making negative contributions,
average value of the coefficients for the terms in the cur-with less \veight to positive terms. These changes are
rently existing evaluation polynomial. not made directly but are brought about in an involved
Still another type of instability can occur wheneverway which will now be described.
a new term is introduced into the scoring polynomial. i\ record is kept of the correlation existing between
Obviously, after only a single move the correlation coeffi- the signs of the individual term contributions in the ini-
cient of this new term will have a magnitude of 1, even tial sCl)rii1g polynomial and the sign of delta. After each
though it might go to 0 after the very next move. To play an adjustment is made in the values of the correla-
prevent violent fluctuations due to this cause, the corre- tion cl)ellicients, due account being taken of the number
lation coefficients for newly introduced terms are com-of times that each particular term has been used and has
puted as if these terms had already been used several hat! a nonzero value. The coefficient for the polynomial
times and had been found to have a zero correlation co-term (other than the piece-advantage term) with the then
efficient. This is done by replacing the times-used num- largest correlation coefficient is set at a prescribed maxi- . s
b er III the calculation by an arbitrary number (usuallymum value with proportionate values determined for all
set at 16) until the usage does, in fact, equal this number.of the remaining coefficients. Actually, the term coeffi-
After a term has been in use for some time, quite the cients arc fi:\et! at integral powers of 2, this power being
opposite action is desired so that the more recent experi- t!efined by the ratio of the correlation coefficients. More
ence can outweigh earlier results. This is achieved, to- precisely, if the ratio oCtwo correlation coefficients is
gether with a substantial reduction in calculation time,equal to or larger than n hut less than Il+ I, where n is by using powers of 2 in place of the actual times-usedan integer. then the ratio of the two term coefficients is
and by limiting the maximum power that is used. To be set equal to 2". This procedure was adopted in order to
specific, at any stage of play defined as the Nth move, increase the range in values of the term coefficients.
corrections to the values of the correlation coefficients\Vhenever a correlation-coefficient calculation leads to a
Cx are made using 16 for N until N equals 32, where- negative sign, a corresponding reversal is made in the
upon 32 is used until N equals 64, et cetera, using the sign associated with the term itself.
formula:
• IIl.l'w!>ilitie.\' C~'_l±1
C.v=C.Y_l N
It should he noted that the span of moves over which
delta is computet! consists of a remembered part and an and a value for N larger than 256 is never used.
anticipated portion. During the remembered play, use After a minimum was set for delta it seemed reasona-
Some studies in machine learning using the game of Checkers · PDF
kaynak: jeo.kompas.com