fix typo
This commit is contained in:
parent
9ced85dd9a
commit
21cd1dc29a
@ -157,7 +157,7 @@ P3l = Pdist(datafile('count_3l.txt'))
|
|||||||
P2l = Pdist(datafile('count_2l.txt')) ## We'll need it later
|
P2l = Pdist(datafile('count_2l.txt')) ## We'll need it later
|
||||||
|
|
||||||
def hillclimb(x, f, neighbors, steps=10000):
|
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)
|
fx = f(x)
|
||||||
neighborhood = iter(neighbors(x))
|
neighborhood = iter(neighbors(x))
|
||||||
for i in range(steps):
|
for i in range(steps):
|
||||||
|
Loading…
Reference in New Issue
Block a user