plancraft 0.3.5__py3-none-any.whl → 0.3.6__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- plancraft/utils.py +1 -2
- {plancraft-0.3.5.dist-info → plancraft-0.3.6.dist-info}/METADATA +1 -1
- {plancraft-0.3.5.dist-info → plancraft-0.3.6.dist-info}/RECORD +5 -5
- {plancraft-0.3.5.dist-info → plancraft-0.3.6.dist-info}/WHEEL +0 -0
- {plancraft-0.3.5.dist-info → plancraft-0.3.6.dist-info}/licenses/LICENSE +0 -0
plancraft/utils.py
CHANGED
@@ -43,7 +43,6 @@ class History:
|
|
43
43
|
self.use_text_inventory = use_text_inventory
|
44
44
|
self.resolution = resolution # low, medium, high
|
45
45
|
|
46
|
-
self.action_history = []
|
47
46
|
self.inventory_history = []
|
48
47
|
self.inventory_counters = []
|
49
48
|
|
@@ -156,7 +155,7 @@ class History:
|
|
156
155
|
|
157
156
|
@property
|
158
157
|
def num_steps(self):
|
159
|
-
return len(self.
|
158
|
+
return (len(self.dialogue_history) - self.initial_dialogue_length) // 2
|
160
159
|
|
161
160
|
def check_stuck(self, max_steps_no_change: int = 10) -> bool:
|
162
161
|
"""
|
@@ -2,7 +2,7 @@ plancraft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
plancraft/config.py,sha256=Ppkps-E8xDNYEP9prOVxW2zEG9MpWVzcLJi4tmGLjuQ,4285
|
3
3
|
plancraft/evaluator.py,sha256=dTsE3FiQTJc094TmBvfBvefOpGSYcePIGVT36OEIClU,10910
|
4
4
|
plancraft/generate_dataset.py,sha256=DlrU-PmvWqSNJD1g1-8Lpb8n3N-Ogw3rje1nrRzjGKs,2382
|
5
|
-
plancraft/utils.py,sha256=
|
5
|
+
plancraft/utils.py,sha256=phaHzbIS85YZrBPaGG9TStHY8ZBKR1LKfuN1exfVy1U,6889
|
6
6
|
plancraft/data/test.json,sha256=4jWfYMAVuZCFmGB4iZJAjlh9_8jXECdaGp8xn7_tAM4,1317131
|
7
7
|
plancraft/data/test.small.easy.json,sha256=5NZEJ2PqIgmHQecJOIVQyM1D6GFKyJq7GVmgRudaqQk,189304
|
8
8
|
plancraft/data/test.small.json,sha256=eULAG1rdolRMXPrecV-7YoDIheKGyIT5MVpWdISV0wg,270089
|
@@ -1920,7 +1920,7 @@ plancraft/models/generators.py,sha256=F76_iPiqxUjDIrQwF58tzM0bLM91OkZJ0sBqBuki5w
|
|
1920
1920
|
plancraft/models/oracle.py,sha256=jDCE6zVFvbwFpDzQZTkHIlRwMud1yMJ4LVIdfpt5ddU,8449
|
1921
1921
|
plancraft/models/utils.py,sha256=E-sZohvolWgGbpHQKgAgkgIfUJoVnT5pMt6JP8xLHKg,4034
|
1922
1922
|
plancraft/train/dataset.py,sha256=oFqEd4LG9oEQ-71teh0Wf7-jJbtybT2ZibfM2bBdBkM,5474
|
1923
|
-
plancraft-0.3.
|
1924
|
-
plancraft-0.3.
|
1925
|
-
plancraft-0.3.
|
1926
|
-
plancraft-0.3.
|
1923
|
+
plancraft-0.3.6.dist-info/METADATA,sha256=MVnklft3zz21a9085j-H-_VYAPJREH2-1ojS08ICbzk,11147
|
1924
|
+
plancraft-0.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
1925
|
+
plancraft-0.3.6.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
|
1926
|
+
plancraft-0.3.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|