194538955b13e9b8cc8716bc6002abf8910af052,slm_lab/agent/memory/replay.py,SeqReplay,preprocess_state,#SeqReplay#Any#Any#,174
Before Change
def preprocess_state(self, state, append=True):
"""Transforms the raw state into format that is fed into the network"""
// append when state is first seen when acting in policy_util, don"t append elsewhere in memory
if append:
assert id(state) != id(self.state_buffer[-1]), "Do not append to buffer other than during action"
self.state_buffer.append(state)
processed_state = np.stack(self.state_buffer)
return processed_state
@lab_api
After Change
def preprocess_state(self, state, append=True):
"""Transforms the raw state into format that is fed into the network"""
// append when state is first seen when acting in policy_util, don"t append elsewhere in memory
self.preprocess_append(state, append)
return np.stack(self.state_buffer)
class SILReplay(Replay):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: SeqReplay
Method Name: preprocess_state
Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/onpolicy.py
Class Name: OnPolicySeqBatchReplay
Method Name: preprocess_state
Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: ConcatReplay
Method Name: preprocess_state
Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/onpolicy.py
Class Name: OnPolicyAtariReplay
Method Name: preprocess_state
Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/onpolicy.py
Class Name: OnPolicySeqReplay
Method Name: preprocess_state
Project Name: kengz/SLM-Lab
Commit Name: 194538955b13e9b8cc8716bc6002abf8910af052
Time: 2018-09-30
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: AtariReplay
Method Name: preprocess_state