b92caeba0b2d531c2ac1e16f595a54222abe6845,tf_agents/bandits/policies/linear_bandit_policy.py,LinearBanditPolicy,_distribution,#LinearBanditPolicy#Any#Any#,205

Before Change


    if observation_and_action_constraint_splitter is not None:
      observation, mask = observation_and_action_constraint_splitter(
          observation)
    observation = tf.cast(observation, dtype=self._dtype)
    if self._add_bias:
      // The bias is added via a constant 1 feature.
      observation = tf.concat([
          observation,

After Change


    if observation_and_action_constraint_splitter is not None:
      observation, mask = observation_and_action_constraint_splitter(
          observation)
    observation = tf.nest.map_structure(lambda o: tf.cast(o, dtype=self._dtype),
                                        observation)
    global_observation, arm_observations = self._split_observation(observation)

    if self._add_bias:
      // The bias is added via a constant 1 feature.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/agents
Commit Name: b92caeba0b2d531c2ac1e16f595a54222abe6845
Time: 2020-04-23
Author: bartok@google.com
File Name: tf_agents/bandits/policies/linear_bandit_policy.py
Class Name: LinearBanditPolicy
Method Name: _distribution


Project Name: tensorflow/agents
Commit Name: a281f8a17967302aa382881d5473b2993843fc6d
Time: 2019-02-20
Author: eholly@google.com
File Name: tf_agents/utils/tensor_normalizer.py
Class Name: TensorNormalizer
Method Name: update


Project Name: tensorflow/agents
Commit Name: 1bef8a0cb502401e33f8572897d981ef81a1a829
Time: 2020-04-30
Author: bartok@google.com
File Name: tf_agents/bandits/policies/neural_linucb_policy.py
Class Name: NeuralLinUCBPolicy
Method Name: _action