noregret 0.0.0.dev2__tar.gz → 0.0.0.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/PKG-INFO +1 -1
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret/regret_minimizers.py +1 -1
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret/utilities.py +5 -1
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret.egg-info/PKG-INFO +1 -1
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/setup.py +1 -1
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/LICENSE +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/README.md +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret/__init__.py +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret/games.py +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret.egg-info/SOURCES.txt +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret.egg-info/dependency_links.txt +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret.egg-info/requires.txt +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/noregret.egg-info/top_level.txt +0 -0
- {noregret-0.0.0.dev2 → noregret-0.0.0.dev3}/setup.cfg +0 -0
|
@@ -388,7 +388,7 @@ class BlumMansour(ProbabilitySimplexSwapRegretMinimizer):
|
|
|
388
388
|
self.previous_strategy[a] * prediction,
|
|
389
389
|
)
|
|
390
390
|
|
|
391
|
-
strategy = stationary_distribution(self.outputs)
|
|
391
|
+
strategy = stationary_distribution(self.outputs.T)
|
|
392
392
|
|
|
393
393
|
self.strategies.append(strategy)
|
|
394
394
|
|
|
@@ -46,7 +46,11 @@ def euclidean_projection_on_probability_simplex(input_):
|
|
|
46
46
|
|
|
47
47
|
def stationary_distribution(stochastic_matrix):
|
|
48
48
|
P = stochastic_matrix
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
if not np.allclose(P.sum(1), 1):
|
|
51
|
+
raise ValueError('matrix not left stochastic')
|
|
52
|
+
|
|
53
|
+
eigenvalues, eigenvectors = LA.eig(P.T)
|
|
50
54
|
pi = eigenvectors[:, np.isclose(eigenvalues, 1)][:, 0]
|
|
51
55
|
pi /= pi.sum()
|
|
52
56
|
pi = pi.real
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|