|
Formula Student Autonomous Systems
The code for the main driverless system
|
Functions | |
| call_cpp_program (params) | |
| objective_function (params) | |
| update_top_5 (params, value) | |
| export_top_5_to_file () | |
| signal_handler (sig, frame) | |
Variables | |
| str | algorithm_to_tune = "cone_coloring" |
| base_dir = os.path.dirname(os.path.abspath(__file__)) | |
| full_path = os.path.join(base_dir, algorithm_to_tune) | |
| module = importlib.import_module("adapt") | |
| str | executable_path = "./" + algorithm_to_tune + "/bayesian_opt" |
| str | export_path = algorithm_to_tune + "/parameters_rank.txt" |
| list | top_5 = [] |
| best_value = float("inf") | |
| best_params = module.parameters_list[0] | |
| optimizer = Optimizer(module.param_space, "GP", n_initial_points=10, random_state=None) | |
| result = objective_function(params) | |
| next_params = optimizer.ask() | |
| current_value = objective_function(next_params) | |
| bayesian.call_cpp_program | ( | params | ) |
| bayesian.export_top_5_to_file | ( | ) |
| bayesian.objective_function | ( | params | ) |
| bayesian.signal_handler | ( | sig, | |
| frame | |||
| ) |
| bayesian.update_top_5 | ( | params, | |
| value | |||
| ) |
Definition at line 71 of file bayesian.py.
| str bayesian.algorithm_to_tune = "cone_coloring" |
Definition at line 9 of file bayesian.py.
| bayesian.base_dir = os.path.dirname(os.path.abspath(__file__)) |
Definition at line 12 of file bayesian.py.
| bayesian.best_params = module.parameters_list[0] |
Definition at line 68 of file bayesian.py.
| bayesian.best_value = float("inf") |
Definition at line 67 of file bayesian.py.
| bayesian.current_value = objective_function(next_params) |
Definition at line 123 of file bayesian.py.
| str bayesian.executable_path = "./" + algorithm_to_tune + "/bayesian_opt" |
Definition at line 28 of file bayesian.py.
| str bayesian.export_path = algorithm_to_tune + "/parameters_rank.txt" |
Definition at line 29 of file bayesian.py.
| bayesian.full_path = os.path.join(base_dir, algorithm_to_tune) |
Definition at line 15 of file bayesian.py.
| bayesian.module = importlib.import_module("adapt") |
Definition at line 23 of file bayesian.py.
| bayesian.next_params = optimizer.ask() |
Definition at line 120 of file bayesian.py.
| bayesian.optimizer = Optimizer(module.param_space, "GP", n_initial_points=10, random_state=None) |
Definition at line 104 of file bayesian.py.
| bayesian.result = objective_function(params) |
Definition at line 107 of file bayesian.py.
| list bayesian.top_5 = [] |
Definition at line 65 of file bayesian.py.