def test_bo(cs, id): bo = SMAC(cs, train, maximal_iter, num_iter=iter_num, n_workers=n_work) bo.run() bo.plot_statistics(method="BO-rnn-%d" % id) result = bo.get_incumbent(5) print(result) return result
def test_vanilla_bo(cs, n_id): bo = SMAC(cs, train, maximal_iter, num_iter=iter_num, n_workers=1) method_name = "Vanilla-BO-fcnet-%d" % n_id bo.set_method_name(method_name) bo.runtime_limit = runtime_limit bo.run() result = bo.get_incumbent(5) print(result) return result
def test_vanilla_bo(cs, id): model = SMAC(cs, train, maximal_iter, num_iter=iter_num, n_workers=1) model.method_name = "Vanilla-BO-xgb-%d" % id model.runtime_limit = runtime_limit model.restart_needed = True model.run() result = model.get_incumbent(5) print(result) return result
def test_bo(cs, id): bo = SMAC(cs, train, maximal_iter, num_iter=iter_num, n_workers=n_work) bo.runtime_limit = runtime_limit method_name = "BO-fcnet-%d" % id bo.set_method_name(method_name) bo.run() bo.plot_statistics(method="BO-fcnet-%d" % id) result = bo.get_incumbent(5) print(result) return result
def test_bo(cs, id): method_id = "BO-resnet-%d" % id bo = SMAC(cs, train, maximal_iter, num_iter=iter_num, n_workers=n_work) bo.restart_needed = True bo.runtime_limit = args.b bo.run() bo.plot_statistics(method=method_id) result = bo.get_incumbent(5) save_result(method_id, result) print(result) return result