tests
- algorithms
- test_algorithms
- test_meta
- test_stopping_criteria
ExposingReturnStatisticBasedStoppingCriterion
MockSampler
test_criterion_always()
test_criterion_combination_and()
test_criterion_combination_or()
test_criterion_custom()
test_criterion_iter_count_equal()
test_criterion_iter_count_higher()
test_criterion_iter_count_lower()
test_criterion_never()
test_criterion_return_statistic_based_check_min()
test_criterion_rollout_based_convergence_equal()
test_criterion_rollout_based_convergence_higher()
test_criterion_rollout_based_convergence_history_filling()
test_criterion_rollout_based_convergence_lower()
test_criterion_rollout_based_convergence_none()
test_criterion_rollout_based_convergence_regress_constant_one()
test_criterion_rollout_based_convergence_regress_constant_zero()
test_criterion_rollout_based_convergence_regress_not_constant()
test_criterion_rollout_based_convergence_regress_random()
test_criterion_rollout_based_convergence_subset()
test_criterion_rollout_based_min_min_return_equal()
test_criterion_rollout_based_min_min_return_higher()
test_criterion_rollout_based_min_min_return_lower()
test_criterion_rollout_based_no_sampler()
test_criterion_rollout_based_wrong_sampler()
test_criterion_sample_count_equal()
test_criterion_sample_count_higher()
test_criterion_sample_count_lower()
test_criterion_toggleable_init_default()
test_criterion_toggleable_init_met()
test_criterion_toggleable_init_not_met()
test_criterion_toggleable_set_on_off_init_met()
test_criterion_toggleable_set_on_off_init_not_met()
test_magic_function_implementation_and()
test_magic_function_implementation_or()
- test_utils
- Module contents
- environment_wrappers
conftest
This file is found by pytest and contains fixtures (i.e., common defaults) that can be used for all tests.
test_domain_randomization
test_environments
test_exploration
test_logger
test_plotting
test_policies
- test_basic_policy_evaluate_packed_padded_sequences(env: Env, policy: RecurrentPolicy)[source]
- test_poly_time_policy(env: Env, cond_lvl: str, cond_final: str, cond_init, overtime_behavior: str, use_cuda: bool)[source]
- test_potential_policy_evaluate_packed_padded_sequences(env: Env, policy: RecurrentPolicy)[source]
- test_rbf_feat_batched(batch_size: int, obs_dim: int, num_feat_per_dim: int, bounds: Tensor)[source]
- test_twoheaded_policy_evaluate_packed_padded_sequences(env: Env, policy: RecurrentPolicy)[source]
test_rollout_result
NOTE: This file is not using to.testing.assert_allclose because most methods need to work for both torch and numpy.
- class DummyNT(part1, part2)[source]
Bases:
tuple
Create new instance of DummyNT(part1, part2)
- property part1
Alias for field number 0
- property part2
Alias for field number 1
test_sampling
- test_parallel_sampling_deterministic_smoke_test_w_min_steps(tmpdir_factory, env: SimEnv, policy: Policy, algo, min_rollouts: int, min_steps: int)[source]
- test_parallel_sampling_deterministic_smoke_test_wo_min_steps(tmpdir_factory, env: SimEnv, policy: Policy, algo, min_rollouts: int)[source]
- test_parallel_sampling_deterministic_w_min_steps(env: SimEnv, policy: Policy, min_rollouts: Optional[int], min_steps: int, domain_params: Optional[List[dict]])[source]
- test_parallel_sampling_deterministic_wo_min_steps(env: SimEnv, policy: Policy, min_rollouts: Optional[int], init_states: Optional[int], domain_params: Optional[List[dict]])[source]
- test_param_expl_sampler(env: SimEnv, policy: Policy, num_init_states_per_domain: int, fixed_init_state: bool, num_domains: int, num_workers: int)[source]
- test_parameter_exploration_sampler_deterministic(env: SimEnv, policy: Policy, num_params: int, num_init_states_per_domain: int, num_domains: int, set_init_states: bool)[source]
test_set_seed
test_spaces
test_step_logger
test_tasks
test_tensor_utils
test_utils
- test_save_load(obj, file_ext: str, tmpdir, prefix: str, suffix: str, use_state_dict: bool, verbose: bool)[source]