Update configs and transactions to include new obs

This commit is contained in:
Marek Wolan
2023-05-30 15:24:13 +01:00
parent 0227769c34
commit fa44dd1a26
7 changed files with 17 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: MULTIDISCRETE
type: BOX
- itemType: STEPS
steps: 128
- itemType: PORTS

View File

@@ -1,5 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: BOX
- itemType: STEPS
steps: 128
- itemType: PORTS

View File

@@ -1,5 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: BOX
- itemType: STEPS
steps: 256
- itemType: PORTS

View File

@@ -1,5 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: BOX
- itemType: STEPS
steps: 256
- itemType: PORTS

View File

@@ -1,5 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: BOX
- itemType: STEPS
steps: 256
- itemType: PORTS

View File

@@ -51,8 +51,13 @@ def write_transaction_to_file(_transaction_list):
# This will be tied into the PrimAITE Use Case so that they make sense
template_transation = _transaction_list[0]
action_length = template_transation.action_space.size
obs_shape = template_transation.obs_space_post.shape
obs_assets = template_transation.obs_space_post.shape[0]
obs_features = template_transation.obs_space_post.shape[1]
if len(obs_shape) == 1:
# bit of a workaround but I think the way transactions are written will change soon
obs_features = 1
else:
obs_features = template_transation.obs_space_post.shape[1]
# Create the action space headers array
action_header = []

View File

@@ -1,5 +1,7 @@
- itemType: ACTIONS
type: NODE
- itemType: OBSERVATIONS
type: BOX
- itemType: STEPS
steps: 13
- itemType: PORTS