Setup testing scripts
This commit is contained in:
@@ -11,7 +11,7 @@ numEpisodes: 10
|
|||||||
# Time delay between steps (for generic agents)
|
# Time delay between steps (for generic agents)
|
||||||
timeDelay: 10
|
timeDelay: 10
|
||||||
# Filename of the scenario / laydown
|
# Filename of the scenario / laydown
|
||||||
configFilename: config_5_DATA_MANIPULATION.yaml
|
configFilename: config_1_DDOS_BASIC.yaml
|
||||||
# Type of session to be run (TRAINING or EVALUATION)
|
# Type of session to be run (TRAINING or EVALUATION)
|
||||||
sessionType: TRAINING
|
sessionType: TRAINING
|
||||||
# Determine whether to load an agent from file
|
# Determine whether to load an agent from file
|
||||||
|
|||||||
@@ -349,12 +349,12 @@ except Exception:
|
|||||||
transaction_list = []
|
transaction_list = []
|
||||||
|
|
||||||
# Create the Primaite environment
|
# Create the Primaite environment
|
||||||
try:
|
# try:
|
||||||
env = Primaite(config_values, transaction_list)
|
env = Primaite(config_values, transaction_list)
|
||||||
logging.info("PrimAITE environment created")
|
# logging.info("PrimAITE environment created")
|
||||||
except Exception:
|
# except Exception:
|
||||||
logging.error("Could not create PrimAITE environment")
|
# logging.error("Could not create PrimAITE environment")
|
||||||
logging.error("Exception occured", exc_info=True)
|
# logging.error("Exception occured", exc_info=True)
|
||||||
|
|
||||||
# Get the number of steps (which is stored in the child config file)
|
# Get the number of steps (which is stored in the child config file)
|
||||||
config_values.num_steps = env.episode_steps
|
config_values.num_steps = env.episode_steps
|
||||||
|
|||||||
Reference in New Issue
Block a user