3441307d09545ca741396122e2ce83d56c7fcebc,test/test_parameters.py,TestParameters,float_unittest,#TestParameters#Any#,26
Before Change
states, terminal, reward = environment.execute(actions=actions)
agent.observe(terminal=terminal, reward=reward)
if not isinstance(exploration, dict) or exploration["type"] == "constant":
actions, exploration_output2 = agent.act(states=states, query="exploration")
self.assertEqual(exploration_output2, exploration_output1)
states, terminal, reward = environment.execute(actions=actions)
agent.observe(terminal=terminal, reward=reward)
else:
actions, exploration_output2 = agent.act(states=states, query="exploration")
self.assertNotEqual(exploration_output2, exploration_output1)
states, terminal, reward = environment.execute(actions=actions)
agent.observe(terminal=terminal, reward=reward)
exploration_input = 0.5
actions, exploration_output = agent.act(
states=states, query="exploration", exploration=exploration_input
)
After Change
agent.observe(terminal=terminal, reward=reward)
actions = agent.act(states=states)
exploration2 = agent.model.exploration.value().numpy().item()
if not isinstance(exploration, dict) or exploration["type"] == "constant":
self.assertEqual(exploration2, exploration1)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: reinforceio/tensorforce
Commit Name: 3441307d09545ca741396122e2ce83d56c7fcebc
Time: 2020-05-06
Author: alexkuhnle@t-online.de
File Name: test/test_parameters.py
Class Name: TestParameters
Method Name: float_unittest
Project Name: reinforceio/tensorforce
Commit Name: 8b61a18641fdaa14601d0ed2e3337c8ee7b65f7c
Time: 2020-03-22
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/layers/misc.py
Class Name: Retrieve
Method Name: __init__
Project Name: interactiveaudiolab/nussl
Commit Name: 441a175deaa5812c086cdb8a3939d51d39f5a7ae
Time: 2020-01-26
Author: prem@u.northwestern.edu
File Name: nussl/deep/train/trainer.py
Class Name: Trainer
Method Name: setup_loss
Project Name: cornellius-gp/gpytorch
Commit Name: 8c40ed8fb56baef7ab5ce8d5ed85bb10e4f09174
Time: 2020-12-16
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_lazy_tensor.py
Class Name: KroneckerProductLazyTensor
Method Name: root_decomposition