valanga 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl
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.
- valanga/policy.py +2 -2
- {valanga-0.1.10.dist-info → valanga-0.1.11.dist-info}/METADATA +1 -1
- {valanga-0.1.10.dist-info → valanga-0.1.11.dist-info}/RECORD +6 -6
- {valanga-0.1.10.dist-info → valanga-0.1.11.dist-info}/WHEEL +1 -1
- {valanga-0.1.10.dist-info → valanga-0.1.11.dist-info}/licenses/LICENSE +0 -0
- {valanga-0.1.10.dist-info → valanga-0.1.11.dist-info}/top_level.txt +0 -0
valanga/policy.py
CHANGED
|
@@ -28,10 +28,10 @@ class Recommendation:
|
|
|
28
28
|
branch_evals: Mapping[BranchName, StateEvaluation] | None = None
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
class BranchSelector(Protocol):
|
|
31
|
+
class BranchSelector[StateT: State](Protocol):
|
|
32
32
|
"""Protocol for a branch selector."""
|
|
33
33
|
|
|
34
|
-
def recommend(self, state:
|
|
34
|
+
def recommend(self, state: StateT, seed: Seed) -> Recommendation:
|
|
35
35
|
"""Given a state and a seed, recommends a branch to take.
|
|
36
36
|
Args:
|
|
37
37
|
state (State): The current state of the game.
|
|
@@ -3,13 +3,13 @@ valanga/evaluations.py,sha256=kGq8oU6cV-dlMvX_lSU_AAAWCXlvEGhsXdRt_CmuYvc,1461
|
|
|
3
3
|
valanga/evaluator_types.py,sha256=dRNY297Up2BSIM2557jy6cz0cINzfUHOpqkr1T6SSQM,344
|
|
4
4
|
valanga/game.py,sha256=7vFLJL0AhG9EqG_Po0hpyFU685YVMWnKYXn-QR2yiOo,6086
|
|
5
5
|
valanga/over_event.py,sha256=jUqN3CXq3e55TvDZatZKFlEOzJfho7M1Zr7VjZUhP6M,7908
|
|
6
|
-
valanga/policy.py,sha256=
|
|
6
|
+
valanga/policy.py,sha256=aYEVRLd9uQGz61vPh0O9KRSmQ6jvzjdmefXgOUVKfmk,1245
|
|
7
7
|
valanga/progress_messsage.py,sha256=3LnOXSgyU84UkwcpsakcbPt_d3el2ojRSUClAwoPyEk,361
|
|
8
8
|
valanga/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
valanga/representation_factory.py,sha256=bVG3i3jBqI6vvvbsoBroYUw7gno7Xeu8vkxPmNCooHE,2464
|
|
10
10
|
valanga/represention_for_evaluation.py,sha256=9yCCOuN-h9FnoLJrffKGQ-oXiiXzZT3rP4e5wwMYfys,1135
|
|
11
|
-
valanga-0.1.
|
|
12
|
-
valanga-0.1.
|
|
13
|
-
valanga-0.1.
|
|
14
|
-
valanga-0.1.
|
|
15
|
-
valanga-0.1.
|
|
11
|
+
valanga-0.1.11.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
valanga-0.1.11.dist-info/METADATA,sha256=nDQ_HBCGwm3_SPPZm3LM9zCHDYzqrAtot5gGFDuXt5o,44646
|
|
13
|
+
valanga-0.1.11.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
valanga-0.1.11.dist-info/top_level.txt,sha256=cKFLhxKDTqygHnc0xc_L8jDx6oNu5hSHqZ4UExU4xPo,8
|
|
15
|
+
valanga-0.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|