dacbench.benchmarks.luby_benchmark
Module Contents
Classes
Benchmark with default configuration & relevant functions for Sigmoid |
- dacbench.benchmarks.luby_benchmark.MAX_STEPS
- dacbench.benchmarks.luby_benchmark.LUBY_SEQUENCE
- dacbench.benchmarks.luby_benchmark.HISTORY_LENGTH = 5
- dacbench.benchmarks.luby_benchmark.DEFAULT_CFG_SPACE
- dacbench.benchmarks.luby_benchmark.SEQ
- dacbench.benchmarks.luby_benchmark.INFO
- dacbench.benchmarks.luby_benchmark.LUBY_DEFAULTS
- class dacbench.benchmarks.luby_benchmark.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