I guess formulate the G2 cleaner

This commit is contained in:
2020-08-02 12:21:20 +02:00
parent c1f3e98c76
commit 4e1d484b63

View File

@@ -67,9 +67,8 @@ def init_global(maze_filename):
maze_cost[MAZE == 'T'] = 50
maze_cost[MAZE == 'G'] = -1
G1_X = maze_cost.copy()[state_mask]
# maze_cost[(MAZE=='0') | (MAZE=='S') | (MAZE=='G')] += 1
# G2_X = maze_cost.copy()[state_mask]
G2_X = G1_X + 1
maze_cost[(MAZE=='0') | (MAZE=='S') | (MAZE=='G')] += 1
G2_X = maze_cost.copy()[state_mask]
# Actual environment modelling
U_OF_X = np.zeros((SN, len(A2)), dtype=np.bool)