ast_toolbox.mcts.AdaptiveStressTestingRandomSeed module¶
-
class
ast_toolbox.mcts.AdaptiveStressTestingRandomSeed.
ASTRSAction
(action, env)[source]¶ Bases:
object
The AST action containing the random seed.
Parameters: action – The random seed. env :
ast_toolbox.envs.go_explore_ast_env.GoExploreASTEnv
The environment.
-
class
ast_toolbox.mcts.AdaptiveStressTestingRandomSeed.
AdaptiveStressTestRS
(**kwargs)[source]¶ Bases:
ast_toolbox.mcts.AdaptiveStressTesting.AdaptiveStressTest
The AST wrapper for MCTS using random seeds as actions.
Parameters: kwargs – Keyword arguments passed to ast_toolbox.mcts.AdaptiveStressTesting.AdaptiveStressTest -
explore_action
(s, tree)[source]¶ Randomly sample an action for the exploration.
Returns: action ( ast_toolbox.mcts.AdaptiveStressTestingRandomSeed.ASTRSAction
) – The sampled action.
-
random_action
()[source]¶ Randomly sample an action for the rollout.
Returns: action ( ast_toolbox.mcts.AdaptiveStressTestingRandomSeed.ASTRSAction
) – The sampled action.
-