36bda8432b2ed23f623c8c3031b2cba148bec93b,rllib/policy/policy.py,Policy,__init__,#Policy#Any#Any#Any#,49

Before Change


        // Child classes need to add their specific requirements here (usually
        // a combination of a Model"s inference_view_- and the
        // Policy"s loss function-requirements.
        self.training_view_requirements = {}

    @abstractmethod
    @DeveloperAPI
    def compute_actions(

After Change


        // Child classes need to add their specific requirements here (usually
        // a combination of a Model"s inference_view_- and the
        // Policy"s loss function-requirements.
        self.view_requirements = {
            SampleBatch.OBS: ViewRequirement(),
            SampleBatch.ACTIONS: ViewRequirement(space=self.action_space),
            SampleBatch.REWARDS: ViewRequirement(),
            SampleBatch.DONES: ViewRequirement(),
            SampleBatch.EPS_ID: ViewRequirement(),
            SampleBatch.AGENT_INDEX: ViewRequirement(),
        }

    @abstractmethod
    @DeveloperAPI
    def compute_actions(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: ray-project/ray
Commit Name: 36bda8432b2ed23f623c8c3031b2cba148bec93b
Time: 2020-10-01
Author: sven@anyscale.io
File Name: rllib/policy/policy.py
Class Name: Policy
Method Name: __init__


Project Name: uber/ludwig
Commit Name: d4617a8be67cf9784161fee75a9a83b0a947974b
Time: 2020-03-21
Author: jimthompson5802@aol.com
File Name: ludwig/features/binary_feature.py
Class Name: BinaryOutputFeature
Method Name: BinaryOutputFeature_2


Project Name: google/tangent
Commit Name: 088da65939f97dff12f67db313c3601da925b1bf
Time: 2017-11-29
Author: mdan@google.com
File Name: tangent/utils.py
Class Name:
Method Name: