dacbench.benchmarks
Submodules
dacbench.benchmarks.cma_benchmarkdacbench.benchmarks.fast_downward_benchmarkdacbench.benchmarks.geometric_benchmarkdacbench.benchmarks.luby_benchmarkdacbench.benchmarks.modcma_benchmarkdacbench.benchmarks.modea_benchmarkdacbench.benchmarks.sgd_benchmarkdacbench.benchmarks.sigmoid_benchmarkdacbench.benchmarks.theory_benchmarkdacbench.benchmarks.toysgd_benchmark
Package Contents
Classes
Benchmark with default configuration & relevant functions for Sigmoid |
|
Benchmark with default configuration & relevant functions for Sigmoid |
|
Abstract template for benchmark classes |
|
Benchmark with default configuration & relevant functions for Geometric |
|
Benchmark with default configuration & relevant functions for Sigmoid |
- class dacbench.benchmarks.LubyBenchmark(config_path=None, config=None)
Bases:
dacbench.abstract_benchmark.AbstractBenchmarkBenchmark with default configuration & relevant functions for Sigmoid
- get_environment(self)
Return Luby env with current configuration
- Returns
Luby environment
- Return type
- set_cutoff(self, steps)
Set cutoff and adapt dependencies
- Parameters
int – Maximum number of steps
- set_history_length(self, length)
Set history length and adapt dependencies
- Parameters
int – History length
- read_instance_set(self, test=False)
Read instance set from file
- get_benchmark(self, L=8, fuzziness=1.5, seed=0)
Get Benchmark from DAC paper
- Parameters
L (int) – Minimum sequence lenght, was 8, 16 or 32 in the paper
fuzziness (float) – Amount of noise applied. Was 1.5 for most of the experiments
seed (int) – Environment seed
- Returns
env – Luby environment
- Return type
- class dacbench.benchmarks.SigmoidBenchmark(config_path=None, config=None)
Bases:
dacbench.abstract_benchmark.AbstractBenchmarkBenchmark with default configuration & relevant functions for Sigmoid
- get_environment(self)
Return Sigmoid env with current configuration
- Returns
Sigmoid environment
- Return type
- set_action_values(self, values)
Adapt action values and update dependencies
- Parameters
values (list) – A list of possible actions per dimension
- read_instance_set(self, test=False)
Read instance set from file
- get_benchmark(self, dimension=None, seed=0)
Get Benchmark from DAC paper
- Parameters
dimension (int) – Sigmoid dimension, was 1, 2, 3 or 5 in the paper
seed (int) – Environment seed
- Returns
env – Sigmoid environment
- Return type
- class dacbench.benchmarks.ToySGDBenchmark(config_path=None, config=None)
Bases:
dacbench.abstract_benchmark.AbstractBenchmarkAbstract template for benchmark classes
- get_environment(self)
Return SGDEnv env with current configuration
- Returns
SGD environment
- Return type
- read_instance_set(self, test=False)
Read path of instances from config into list
- class dacbench.benchmarks.GeometricBenchmark(config_path=None)
Bases:
dacbench.abstract_benchmark.AbstractBenchmarkBenchmark with default configuration & relevant functions for Geometric
- get_environment(self)
Return Geometric env with current configuration
- Returns
Geometric environment
- Return type
- read_instance_set(self)
Read instance set from file Creates a nested List for every Intance. The List contains all functions with their respective values.
- get_benchmark(self, dimension=None, seed=0)
[summary]
- Parameters
dimension ([type], optional) – [description], by default None
seed (int, optional) – [description], by default 0
- Returns
[description]
- Return type
[type]
- set_action_values(self)
Adapt action values and update dependencies Number of actions can differ between functions if configured in DefaultDict Set observation space args.
- set_action_description(self)
Add Information about Derivative and Coordinate to Description.
- create_correlation_table(self)
Create correlation table from Config infos
- class dacbench.benchmarks.FastDownwardBenchmark(config_path=None, config=None)
Bases:
dacbench.abstract_benchmark.AbstractBenchmarkBenchmark with default configuration & relevant functions for Sigmoid
- get_environment(self)
Return Luby env with current configuration
- Returns
Luby environment
- Return type
- read_instance_set(self, test=False)
Read paths of instances from config into list
- set_heuristics(self, heuristics)
- get_benchmark(self, seed=0)
Get published benchmark
- Parameters
seed (int) – Environment seed
- Returns
env – FD environment
- Return type