b2aad723220e31bc8e950c112b557732b608b97a,PyPi/environments/pendulum.py,Pendulum,__init__,#Pendulum#,8

Before Change


        self.gamma = 0.95

        // MDP initialization
        self.env.seed()
        self.reset()

    def reset(self, state=None):
        if state is None:

After Change


        self.horizon = 100
        self.gamma = 0.95

        super(Pendulum, self).__init__()

    def reset(self, state=None):
        if state is None:
            self.env.reset()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: b2aad723220e31bc8e950c112b557732b608b97a
Time: 2017-06-04
Author: carlo.deramo@gmail.com
File Name: PyPi/environments/pendulum.py
Class Name: Pendulum
Method Name: __init__


Project Name: tensorflow/models
Commit Name: 19d4eaaf5e1883776b341a4f704bb6a277e315aa
Time: 2018-10-18
Author: taylorrobie@google.com
File Name: official/recommendation/data_preprocessing.py
Class Name:
Method Name: _train_eval_map_fn


Project Name: havakv/pycox
Commit Name: bf405ea16997d01d0225e2f63f9e795a83174afa
Time: 2019-10-07
Author: haavard.kvamme@gmail..com
File Name: pycox/simulations/discrete_logit_hazard.py
Class Name: SimBase
Method Name: __init__