c773824f4f22a14375a2451264d1b5708addd0f9,rllib/models/tests/test_distributions.py,TestDistributions,_stability_test,#TestDistributions#Any#Any#Any#Any#Any#,27
Before Change
]
inputs = np.zeros(shape=network_output_shape, dtype=np.float32)
for batch_item in range(network_output_shape[0]):
for num in range(len(inputs[batch_item])):
inputs[batch_item][num] = np.random.choice(extreme_values)
dist = distribution_cls(inputs, {})
for _ in range(100):
sample = dist.sample()
if fw != "tf":
After Change
]
inputs = np.zeros(shape=network_output_shape, dtype=np.float32)
for batch_item in range(network_output_shape[0]):
for num in range(len(inputs[batch_item]) // 2):
inputs[batch_item][num] = np.random.choice(extreme_values)
else:
// For Gaussians, the second half of the vector is
// log standard deviations, and should therefore be
// the log of a positive number >= 1.
inputs[batch_item][num] = np.log(
max(1, np.random.choice((extreme_values))))
dist = distribution_cls(inputs, {})
for _ in range(100):
sample = dist.sample()
if fw != "tf":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ray-project/ray
Commit Name: c773824f4f22a14375a2451264d1b5708addd0f9
Time: 2020-06-03
Author: twakhare@gmail.com
File Name: rllib/models/tests/test_distributions.py
Class Name: TestDistributions
Method Name: _stability_test
Project Name: tensorlayer/tensorlayer
Commit Name: 16a31e2c9fedc654e9117b42b8144adf1d0e4900
Time: 2020-02-03
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_TRPO.py
Class Name: TRPO
Method Name: update
Project Name: ray-project/ray
Commit Name: 8b3f79f3079834f00c7ec62d5decd6bc026c1bc8
Time: 2020-11-14
Author: rliaw@berkeley.edu
File Name: python/ray/tune/tests/test_cluster.py
Class Name:
Method Name: test_cluster_interrupt_searcher