def __init__(self, hyperparams): config = copy.deepcopy(COST_SUM) config.update(hyperparams) Cost.__init__(self, config) self._costs = [] self._weights = self._hyperparams['weights'] for cost in self._hyperparams['costs']: self._costs.append(cost['type'](cost))
def __init__(self, hyperparams): config = copy.deepcopy(COST_SUM) config.update(hyperparams) Cost.__init__(self, config) self._costs = [] self._weights = self._hyperparams['weights'] for cost in self._hyperparams['costs']: self._costs.append(cost['type'](cost))
def __init__(self, hyperparams): config = copy.deepcopy(COST_IOC_QUADRATIC) # Set this up in the config? config.update(hyperparams) Cost.__init__(self, config) self._dO = self._hyperparams['dO'] self._T = self._hyperparams['T'] # By default using caffe if self._hyperparams['use_gpu']: caffe.set_device(self._hyperparams['gpu_id']) caffe.set_mode_gpu() else: caffe.set_mode_cpu() self.demo_batch_size = self._hyperparams['demo_batch_size'] self.sample_batch_size = self._hyperparams['sample_batch_size'] self.caffe_iter = 0 self._init_solver()
def __init__(self, hyperparams): config = copy.deepcopy(COST_IOC_NN) # Set this up in the config? config.update(hyperparams) Cost.__init__(self, config) self._dO = self._hyperparams['dO'] self._T = self._hyperparams['T'] # By default using caffe if self._hyperparams['use_gpu']: caffe.set_device(self._hyperparams['gpu_id']) caffe.set_mode_gpu() else: caffe.set_mode_cpu() self.demo_batch_size = self._hyperparams['demo_batch_size'] self.sample_batch_size = self._hyperparams['sample_batch_size'] self.caffe_iter = 0 self._init_solver()
def __init__(self, hyperparams): config = copy.deepcopy(COST_LIN_WP) config.update(hyperparams) Cost.__init__(self, config)
def __init__(self, hyperparams): config = copy.deepcopy(COST_STATE) config.update(hyperparams) Cost.__init__(self, config)
def __init__(self, hyperparams): config = copy.deepcopy(COST_BINARY_REGION) config.update(hyperparams) Cost.__init__(self, config)
def __init__(self, hyperparams): config = copy.deepcopy(COST_COLLISION) config.update(hyperparams) Cost.__init__(self, config)
def __init__(self, hyperparams): # config = copy.deepcopy() # config.update(hyperparams) Cost.__init__(self, None)