胜率计算归一化

This commit is contained in:
zhiyang7 2021-12-29 09:57:03 +08:00
parent 5e290bae40
commit b717c48ece
1 changed files with 1 additions and 1 deletions

View File

@ -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))