Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
bayesian.py File Reference

Go to the source code of this file.

Namespaces

namespace  bayesian
 

Functions

 bayesian.call_cpp_program (params)
 
 bayesian.objective_function (params)
 
 bayesian.update_top_5 (params, value)
 
 bayesian.export_top_5_to_file ()
 
 bayesian.signal_handler (sig, frame)
 

Variables

str bayesian.algorithm_to_tune = "cone_coloring"
 
 bayesian.base_dir = os.path.dirname(os.path.abspath(__file__))
 
 bayesian.full_path = os.path.join(base_dir, algorithm_to_tune)
 
 bayesian.module = importlib.import_module("adapt")
 
str bayesian.executable_path = "./" + algorithm_to_tune + "/bayesian_opt"
 
str bayesian.export_path = algorithm_to_tune + "/parameters_rank.txt"
 
list bayesian.top_5 = []
 
 bayesian.best_value = float("inf")
 
 bayesian.best_params = module.parameters_list[0]
 
 bayesian.optimizer = Optimizer(module.param_space, "GP", n_initial_points=10, random_state=None)
 
 bayesian.result = objective_function(params)
 
 bayesian.next_params = optimizer.ask()
 
 bayesian.current_value = objective_function(next_params)