def run_mloop(): ''' M-LOOP Launcher Starts an instance of M-LOOP configured using a configuration file. Takes the following command line options -c filename for configuration file -h display help the default name for the configuration is "ExpConfig.txt" ''' parser = argparse.ArgumentParser( description='M-LOOP Launcher \n Version:' + ml.__version__ + '\n \n Starts a new instance of M-LOOP based a on configuration file.', formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument('-c', '--configFile', default='exp_config.txt', help='Filename of configuration file.') parser.add_argument('-v', '--version', action='version', version=ml.__version__) args = parser.parse_args() config_filename = args.configFile _ = mll.launch_from_file(config_filename)
def run_mloop(): ''' M-LOOP Launcher Starts an instance of M-LOOP configured using a configuration file. Takes the following command line options -c filename for configuration file -h display help the default name for the configuration is "ExpConfig.txt" ''' parser = argparse.ArgumentParser(description='M-LOOP Launcher \n Version:' + ml.__version__+'\n \n Starts a new instance of M-LOOP based a on configuration file.', formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument('-c','--configFile',default='exp_config.txt',help='Filename of configuration file.') parser.add_argument('-v','--version', action='version', version=ml.__version__) args = parser.parse_args() config_filename = args.configFile _ = mll.launch_from_file(config_filename)
def test_controller_config(self): controller = mll.launch_from_file(mlu.mloop_path + '/../examples/controller_config.txt', interface_type='test', no_delay=False, **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_shell_interface_config(self): controller = mll.launch_from_file(mlu.mloop_path+'/../examples/shell_interface_config.txt', num_params=1, target_cost = 0.1, no_delay = False, **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_differential_evolution_complete_config(self): controller = mll.launch_from_file( mlu.mloop_path + '/../examples/differential_evolution_complete_config.txt', interface_type='test', **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_tutorial_config(self): fake_experiment = mlt.FakeExperiment() fake_experiment.start() controller = mll.launch_from_file(mlu.mloop_path+'/../examples/tutorial_config.txt', **self.override_dict) self.asserts_for_cost_and_params(controller) fake_experiment.end_event.set() fake_experiment.join()
def test_logging_config(self): controller = mll.launch_from_file(mlu.mloop_path+'/../examples/logging_config.txt', num_params=1, min_boundary = [-1.0], max_boundary = [1.0], target_cost = 0.1, interface_type = 'test', no_delay = False, **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_file_interface_config(self): fake_experiment = mlt.FakeExperiment() fake_experiment.start() controller = mll.launch_from_file(mlu.mloop_path+'/../examples/file_interface_config.txt', num_params=1, target_cost = 0.1, **self.override_dict) self.asserts_for_cost_and_params(controller) fake_experiment.end_event.set() fake_experiment.join()
def test_nelder_mead_complete_config(self): controller = mll.launch_from_file( mlu.mloop_path + '/../examples/nelder_mead_complete_config.txt', interface_type='test', **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_random_complete_config(self): _ = mll.launch_from_file(mlu.mloop_path + '/../examples/random_complete_config.txt', interface_type='test', **self.override_dict)
def test_gaussian_process_complete_config(self): controller = mll.launch_from_file(mlu.mloop_path+'/../examples/gaussian_process_complete_config.txt', interface_type = 'test', no_delay = False, **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_differential_evolution_complete_config(self): controller = mll.launch_from_file(mlu.mloop_path+'/../examples/differential_evolution_complete_config.txt', interface_type = 'test', **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_nelder_mead_complete_config(self): controller = mll.launch_from_file(mlu.mloop_path+'/../examples/nelder_mead_complete_config.txt', interface_type = 'test', **self.override_dict) self.asserts_for_cost_and_params(controller)
def test_random_complete_config(self): _ = mll.launch_from_file(mlu.mloop_path+'/../examples/random_complete_config.txt', interface_type = 'test', **self.override_dict)