ce96b03b07a4a4bdd851aa84493c616cd291aff2,rllib/agents/mbmpo/model_ensemble.py,DynamicsEnsembleCustomModel,predict_model_batches,#DynamicsEnsembleCustomModel#Any#Any#Any#,323
Before Change
delta = self.forward(x).detach().numpy()
if self.normalize_data:
delta = denormalize(delta, self.normalizations["delta"])
return pre_obs + delta
def set_norms(self, normalization_dict):
self.normalizations = normalization_dict
After Change
self.normalizations[SampleBatch.ACTIONS])
x = np.concatenate([obs, actions], axis=-1)
x = convert_to_torch_tensor(x, device=device)
delta = self.forward(x).detach().cpu().numpy()
if self.normalize_data:
delta = denormalize(delta, self.normalizations["delta"])
new_obs = pre_obs + delta
clipped_obs = np.clip(new_obs, self.env_obs_space.low,
self.env_obs_space.high)
return clipped_obs
def set_norms(self, normalization_dict):
self.normalizations = normalization_dict
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: ray-project/ray
Commit Name: ce96b03b07a4a4bdd851aa84493c616cd291aff2
Time: 2020-10-06
Author: sven@anyscale.io
File Name: rllib/agents/mbmpo/model_ensemble.py
Class Name: DynamicsEnsembleCustomModel
Method Name: predict_model_batches
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 5e82853bb435e7c46e2e3bafa2c1d0a4c40ffb38
Time: 2017-02-03
Author: AKSHAYUBHAT@GMAIL.COM
File Name: dvalib/indexer.py
Class Name: BaseIndexer
Method Name: apply
Project Name: d2l-ai/d2l-zh
Commit Name: 3a770cbc97085c2cd4eaa0a46b2bc037f35389c2
Time: 2017-10-25
Author: muli@cs.cmu.edu
File Name: utils.py
Class Name:
Method Name: evaluate_accuracy