f80d8818f159be225c622d29ce705e6f52839f6d,tensorforce/models/random_model.py,RandomModel,tf_actions_and_internals,#RandomModel#Any#Any#Any#,29
Before Change
maxval=action.max_value,
)
else:
actions[name] = tf.random_normal(shape=action.shape, name="random-action")
return actions, internals
def tf_loss_per_instance(self, states, internals, actions, terminal, reward):
After Change
print(states.values())
print(type(next(iter(states.values()))))
print(tf.shape(input=next(iter(states.values()))))
shape = tuple(tf.shape(input=next(iter(states.values())))[0],) + action["shape"]
if action["type"] == "bool":
action = tf.random_uniform(shape=shape)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: reinforceio/tensorforce
Commit Name: f80d8818f159be225c622d29ce705e6f52839f6d
Time: 2017-10-15
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/models/random_model.py
Class Name: RandomModel
Method Name: tf_actions_and_internals
Project Name: keras-team/keras
Commit Name: 0ba6d95e768eb7a0d74a6fda3ea893e7fb2d7a67
Time: 2018-05-10
Author: rowel.atienza@gmail.com
File Name: examples/variational_autoencoder.py
Class Name:
Method Name: sampling
Project Name: keras-team/keras
Commit Name: 0ba6d95e768eb7a0d74a6fda3ea893e7fb2d7a67
Time: 2018-05-10
Author: rowel.atienza@gmail.com
File Name: examples/variational_autoencoder_deconv.py
Class Name:
Method Name: sampling