yawning_titan.agents.simple_blue#
Classes
An interface capable of training a reinforcement learning agent in the specific environments. |
- class yawning_titan.agents.simple_blue.SimpleBlue(n_machines=None)[source]#
An interface capable of training a reinforcement learning agent in the specific environments.
- patch_machines(action, machine_states)[source]#
Patch a target machine and reduce its vulnerability score.
This action reduces a target machines vulerability score by 0.2 per use to a lower threshold of 0.2.
- Parameters:
action – The chosen action
machine_states – The current state of the env
- recover_machines(action, machine_states, initial_states)[source]#
Recover a compromised machine and resets its state to the initial state during environment creation.
- Parameters:
action – The chosen action
machine_states – The current state of the env
initial_states – The first state of the environment when initialised/reset