def generate_knob(action, method): if method == 'ddpg': # 根据DDPG,更新KNOB的函数 return environment.gen_continuous(action) else: raise NotImplementedError('Not Implemented')
def generate_knob(action, method): if method == 'ddpg': return environment.gen_continuous(action) else: raise NotImplementedError()
def generate_knob(action): return environment.gen_continuous(action)