import numpy as np
import copy
import os
# from  open_spiel.python.algorithms.psro_v2.eval_utils import regret, strategy_regret

a = np.array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       1.46136407e-11, 2.43534746e-11, 0.00000000e+00, 0.00000000e+00,
       6.26474864e-04, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       0.00000000e+00, 0.00000000e+00, 3.06091421e-11, 0.00000000e+00,
       2.73382266e-12, 3.01906033e-03, 6.15337133e-11, 2.22987486e-02,
       1.96780209e-10, 0.00000000e+00, 0.00000000e+00, 6.30250977e-12,
       7.62313019e-12, 8.67957580e-11, 5.96309135e-03, 0.00000000e+00,
       0.00000000e+00, 4.87150332e-11, 2.22907529e-09, 3.00667491e-12,
       7.64096431e-11, 2.50626560e-11, 3.21287032e-10, 2.00773938e-09,
       4.47241680e-02, 1.05243979e-10, 4.90703456e-02, 8.79504211e-11,
       5.85141307e-11, 0.00000000e+00, 2.08375189e-02, 1.08411249e-11,
       7.08560284e-10, 5.24108131e-11, 3.60059320e-11, 5.04513420e-11,
       3.89979732e-10, 2.18512393e-11, 0.00000000e+00, 5.18866718e-11,
       2.98035445e-11, 4.21585962e-11, 8.12631135e-05, 2.47036035e-10,
       3.40407189e-02, 2.66983510e-11, 4.97570480e-02, 7.08764797e-11,
       6.77330649e-11, 6.64701347e-03, 4.74546354e-08, 5.32477681e-12,
       3.67791416e-11, 3.19574662e-11, 0.00000000e+00, 0.00000000e+00,
       7.40846030e-11, 3.18095875e-10, 8.00694274e-11, 1.87840991e-10,
       0.00000000e+00, 4.31044829e-03, 0.00000000e+00, 4.41620261e-03,
       1.43159254e-10, 0.00000000e+00, 9.92408486e-11, 3.89811764e-02,
       3.67245098e-11, 6.56315480e-09, 3.64430554e-02, 7.16560008e-11,
       1.72425423e-10, 7.05187955e-09, 0.00000000e+00, 2.94790780e-03,
       0.00000000e+00, 1.24834084e-10, 0.00000000e+00, 8.83997269e-03,
       3.08846603e-03, 2.41031445e-03, 3.69597998e-15, 2.69970213e-10,
       3.38848893e-04, 3.23723408e-10, 4.00805585e-03, 3.69855678e-09,
       1.03572056e-02, 1.57563715e-10, 2.91278152e-09, 2.06716517e-02,
       1.03186732e-10, 1.01216698e-01, 2.32742359e-09, 2.92947552e-11,
       1.28586048e-02, 4.85404822e-09, 2.21706552e-03, 1.15873281e-11,
       2.81046154e-03, 9.37632711e-10, 1.46652561e-02, 2.17865141e-10,
       7.32085004e-11, 2.41898734e-10, 3.04023310e-10, 3.27501570e-10,
       4.37173249e-10, 1.92912122e-02, 2.49111603e-10, 5.03662718e-10,
       9.85082269e-10, 1.24301348e-10, 5.31370700e-09, 2.95950518e-02,
       1.74949236e-02, 4.62534579e-02, 9.34787347e-03, 6.93238079e-10,
       9.53736582e-10, 1.51582327e-02, 2.07823811e-02, 3.25579409e-02,
       1.20289603e-09, 4.45563576e-02, 4.11052000e-10, 3.39929254e-10,
       2.34812825e-02, 1.17368868e-10, 5.98432895e-02, 4.65485929e-02,
       2.74829213e-02, 1.91589641e-02, 8.08005778e-02])

a[a < 0.001] = 0
print(np.sum(a))
print(len(np.where(a>0)[0]))
import numpy as np
import copy
import os
# from  open_spiel.python.algorithms.psro_v2.eval_utils import regret, strategy_regret

a = np.array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       1.46136407e-11, 2.43534746e-11, 0.00000000e+00, 0.00000000e+00,
       6.26474864e-04, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
       0.00000000e+00, 0.00000000e+00, 3.06091421e-11, 0.00000000e+00,
       2.73382266e-12, 3.01906033e-03, 6.15337133e-11, 2.22987486e-02,
       1.96780209e-10, 0.00000000e+00, 0.00000000e+00, 6.30250977e-12,
       7.62313019e-12, 8.67957580e-11, 5.96309135e-03, 0.00000000e+00,
       0.00000000e+00, 4.87150332e-11, 2.22907529e-09, 3.00667491e-12,
       7.64096431e-11, 2.50626560e-11, 3.21287032e-10, 2.00773938e-09,
       4.47241680e-02, 1.05243979e-10, 4.90703456e-02, 8.79504211e-11,
       5.85141307e-11, 0.00000000e+00, 2.08375189e-02, 1.08411249e-11,
       7.08560284e-10, 5.24108131e-11, 3.60059320e-11, 5.04513420e-11,
       3.89979732e-10, 2.18512393e-11, 0.00000000e+00, 5.18866718e-11,
       2.98035445e-11, 4.21585962e-11, 8.12631135e-05, 2.47036035e-10,
       3.40407189e-02, 2.66983510e-11, 4.97570480e-02, 7.08764797e-11,
       6.77330649e-11, 6.64701347e-03, 4.74546354e-08, 5.32477681e-12,
       3.67791416e-11, 3.19574662e-11, 0.00000000e+00, 0.00000000e+00,
       7.40846030e-11, 3.18095875e-10, 8.00694274e-11, 1.87840991e-10,
       0.00000000e+00, 4.31044829e-03, 0.00000000e+00, 4.41620261e-03,
       1.43159254e-10, 0.00000000e+00, 9.92408486e-11, 3.89811764e-02,
       3.67245098e-11, 6.56315480e-09, 3.64430554e-02, 7.16560008e-11,
       1.72425423e-10, 7.05187955e-09, 0.00000000e+00, 2.94790780e-03,
       0.00000000e+00, 1.24834084e-10, 0.00000000e+00, 8.83997269e-03,
       3.08846603e-03, 2.41031445e-03, 3.69597998e-15, 2.69970213e-10,
       3.38848893e-04, 3.23723408e-10, 4.00805585e-03, 3.69855678e-09,
       1.03572056e-02, 1.57563715e-10, 2.91278152e-09, 2.06716517e-02,
       1.03186732e-10, 1.01216698e-01, 2.32742359e-09, 2.92947552e-11,
       1.28586048e-02, 4.85404822e-09, 2.21706552e-03, 1.15873281e-11,
       2.81046154e-03, 9.37632711e-10, 1.46652561e-02, 2.17865141e-10,
       7.32085004e-11, 2.41898734e-10, 3.04023310e-10, 3.27501570e-10,
       4.37173249e-10, 1.92912122e-02, 2.49111603e-10, 5.03662718e-10,
       9.85082269e-10, 1.24301348e-10, 5.31370700e-09, 2.95950518e-02,
       1.74949236e-02, 4.62534579e-02, 9.34787347e-03, 6.93238079e-10,
       9.53736582e-10, 1.51582327e-02, 2.07823811e-02, 3.25579409e-02,
       1.20289603e-09, 4.45563576e-02, 4.11052000e-10, 3.39929254e-10,
       2.34812825e-02, 1.17368868e-10, 5.98432895e-02, 4.65485929e-02,
       2.74829213e-02, 1.91589641e-02, 8.08005778e-02])

a[a < 0.001] = 0
print(np.sum(a))
print(len(np.where(a>0)[0]))
# from  open_spiel.python.algorithms.psro_v2.eval_utils import regret, strategy_regret