Merge pull request #47 from mcsalgado/patch-1

fix typo
This commit is contained in:
Peter Norvig 2018-07-25 03:39:03 +02:00 committed by GitHub
commit fec9171376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ P3l = Pdist(datafile('count_3l.txt'))
P2l = Pdist(datafile('count_2l.txt')) ## We'll need it later
def hillclimb(x, f, neighbors, steps=10000):
"Search for an x that miximizes f(x), considering neighbors(x)."
"Search for an x that maximizes f(x), considering neighbors(x)."
fx = f(x)
neighborhood = iter(neighbors(x))
for i in range(steps):