Skip to content

Commit 0a55b15

Browse files
committed
fix busted adaption selection
1 parent 49438a9 commit 0a55b15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/freelunch/darwin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,6 @@ def update_strategy_ps(strats):
196196

197197
# API for strategy selection
198198
def select_strategy(strats):
199-
ps = [s.p for s in strats]
199+
ps = [s.p[-1] for s in strats]
200+
ps = ps/np.sum(ps)
200201
return np.random.choice(strats, p=ps)

0 commit comments

Comments
 (0)