Skip to content

Commit 76e3dc4

Browse files
committed
Small update to store the model in the correct folder
1 parent 39353ee commit 76e3dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents/attackers/conceptual_q_learning/conceptual_q_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def store_q_table(self, strpath, filename):
4949
# path.join(path.dirname(path.abspath(__file__)), "logs")
5050
if not path.exists(strpath):
5151
makedirs(strpath)
52-
with open(strpath+filename, "wb") as f:
52+
with open(strpath + '/' + filename, "wb") as f:
5353
data = {"q_table":self.q_values, "state_mapping": self._str_to_id}
5454
pickle.dump(data, f)
5555

0 commit comments

Comments
 (0)