ast_toolbox.mcts.ASTSim module

class ast_toolbox.mcts.ASTSim.AcionSequence(sequence, index=0)[source]

Bases: object

Sturcture storing the actions sequences.

Parameters:
  • sequence (list) – The list of actions.
  • index (int, optional) – The initial action index in the sequence.
ast_toolbox.mcts.ASTSim.action_seq_policy(action_seq, s)[source]

The policy wrapper for the action sequence.

Parameters:
Returns:

action (ast_toolbox.mcts.AdaptiveStressTesting.ASTAction) – The AST action.

ast_toolbox.mcts.ASTSim.play_sequence(ast, actions, verbose=False, sleeptime=0.0)[source]

Rollout the action sequence.

Parameters:
Returns:

  • rewards (list[float]) – The rewards.
  • actions2 (list) – The action sequence of the path. Should be the same as the input actions.