胜率计算归一化
This commit is contained in:
parent
5e290bae40
commit
b717c48ece
|
@ -201,7 +201,7 @@ def predict():
|
|||
win_rates = {}
|
||||
for i in range(len(actions)):
|
||||
# Here, we calculate the win rate
|
||||
win_rate = max(actions_confidence[i], -1)
|
||||
win_rate = max(actions_confidence[i] * 7.2, -1)
|
||||
win_rate = min(win_rate, 1)
|
||||
win_rates[actions[i]] = str(round((win_rate + 1) / 2, 4))
|
||||
result[actions[i]] = str(round(actions_confidence[i], 6))
|
||||
|
|
Loading…
Reference in New Issue