287e2ca17dae458a03d2690b57c3e3e7b40982ce,tf_agents/policies/epsilon_greedy_policy.py,EpsilonGreedyPolicy,__init__,#EpsilonGreedyPolicy#Any#Any#Any#,47
Before Change
Raises:
ValueError: If epsilon is invalid.
observation_and_action_constraint_splitter = getattr(
policy, "observation_and_action_constraint_splitter", None)
accepts_per_arm_features = getattr(policy, "accepts_per_arm_features",
False)
self._greedy_policy = greedy_policy.GreedyPolicy(policy)
self._epsilon = epsilon
After Change
policy.observation_and_action_constraint_splitter)
except AttributeError:
observation_and_action_constraint_splitter = None
try:
accepts_per_arm_features = policy.accepts_per_arm_features
except AttributeError:
accepts_per_arm_features = False
self._greedy_policy = greedy_policy.GreedyPolicy(policy)
self._epsilon = epsilon
self._random_policy = random_tf_policy.RandomTFPolicy(
policy.time_step_spec,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tensorflow/agents
Commit Name: 287e2ca17dae458a03d2690b57c3e3e7b40982ce
Time: 2020-07-10
Author: no-reply@google.com
File Name: tf_agents/policies/epsilon_greedy_policy.py
Class Name: EpsilonGreedyPolicy
Method Name: __init__
Project Name: jazzband/django-debug-toolbar
Commit Name: fe3df822111d3b56000deca354b0bceed7bde9cc
Time: 2013-11-24
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/settings.py
Class Name:
Method Name:
Project Name: matthewwithanm/django-imagekit
Commit Name: b33869a9f8d25c7c4d5a720c120309bae1fa71c0
Time: 2013-02-25
Author: m@tthewwithanm.com
File Name: imagekit/cachefiles/__init__.py
Class Name: ImageCacheFile
Method Name: __init__