3576ad8e87e7cfb5ba7e22296a6ab57226b957b2,PyPi/algorithms/td.py,DoubleQLearning,fit,#DoubleQLearning#Any#Any#,85

Before Change


        state, action, reward, next_state, absorbing, _ = parse_dataset(
            [dataset[-1]])

        sa = state_action(state, action)

        approximator_idx = 0 if np.random.uniform() < 0.5 else 1

        q_current = self.approximator[approximator_idx].predict(sa)

After Change


        state, action, reward, next_state, absorbing, _ = parse_dataset(
            [dataset[-1]])

        sa = [state, action]

        approximator_idx = 0 if np.random.uniform() < 0.5 else 1

        q_current = self.approximator[approximator_idx].predict(sa)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 4

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/td.py
Class Name: DoubleQLearning
Method Name: fit


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/td.py
Class Name: SpeedyQLearning
Method Name: fit


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/td.py
Class Name: DoubleQLearning
Method Name: _next_q


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/dataset.py
Class Name:
Method Name: max_QA


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/td.py
Class Name: TD
Method Name: fit


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/batch_td.py
Class Name: FQI
Method Name: partial_fit


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3576ad8e87e7cfb5ba7e22296a6ab57226b957b2
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/td.py
Class Name: WeightedQLearning
Method Name: fit


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 88a43b1e4fe0cd92a5e3962ef32dba9690f0d10c
Time: 2017-07-24
Author: carlo.deramo@gmail.com
File Name: PyPi/algorithms/dqn.py
Class Name: DQN
Method Name: fit