def __init__(self, simulation=0): self.is_simulation = simulation self.exp_state = 0 try: with open('exp_data_incomplete.pkl', 'rb') as f: self.opt = pickle.load(f) except: self.opt = Optimizer( base_estimator='GP', acq_func='LCB', acq_optimizer='auto', dimensions=[ (0.0, 4.0), # range for param 1 (eg trajectory final height?) (1.0, 5.0), # range for param 2 (eg trajectory final pitch?) (1.0, 5.0), # range for param 3 (eg audio gain?) (-2.0, 2.0) ], # range for param 4 (eg vibrational state duration?) acq_func_kwargs={ 'kappa': 5 }, # we should prefer explore. howver, with higher dim it will naturally tend to diversify, so kappa could be decreased n_initial_points=10) # NB pitching 90 is problematic for the quaternion, debug required. for now, range should be [0-89] if not self.is_simulation: BaseModule.__init__(self)
def __init__(self, name): BaseModule.__init__(self, name) self.reg_base_path = '' self.params_list = [] self.parse_config() self.cfg_ctr = {}
def __init__(self, name): BaseModule.__init__(self, name) self.conf_file = BASE_DIR + self.path + "\my.ini" self.parse_config_file() self.cfg_ctr = {}
def __init__(self, name): BaseModule.__init__(self, name) self.conf_file = BASE_DIR + self.path + "\conf\httpd.conf" self.parse_config_file()