2a3d7175b8da52a64da24e2ed64ca3421ded6bbe,framework/Optimizers/GradientBasedOptimizer.py,GradientBasedOptimizer,localFinalizeActualSampling,#GradientBasedOptimizer#Any#Any#Any#,331

Before Change


                  //self.solutionExport.updateOutputValue([trajID,var], np.append(tempTrajOutputVar,np.asarray(outputeval[var][index])))
                  self.solutionExport.updateOutputValue([trajID,var], np.append(tempTrajOutputVar,np.asarray(currentObjectiveValue)))
              if "varsUpdate" in self.solutionExport.getParaKeys("outputs"):
                tempTrajOutputVar = copy.deepcopy(tempTrajOutput.get("varsUpdate", np.asarray([])))
                self.solutionExport.updateOutputValue([trajID,"varsUpdate"], np.append(tempTrajOutputVar,np.asarray([self.counter["solutionUpdate"][traj]])))

              self.counter["solutionUpdate"][traj] += 1
          else:

After Change


                elif var == "_stepSize":
                  new = [self.counter["lastStepSize"][traj]]
                elif var == "_gradient":
                  new = np.array(self.counter["gradientHistory"][traj][0]*self.counter["gradNorm"][traj][0])
                new = np.asarray(new)
                self.solutionExport.updateOutputValue([trajID,var],np.append(old,new))

              self.counter["solutionUpdate"][traj] += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: idaholab/raven
Commit Name: 2a3d7175b8da52a64da24e2ed64ca3421ded6bbe
Time: 2017-05-25
Author: paul.talbot@inl.gov
File Name: framework/Optimizers/GradientBasedOptimizer.py
Class Name: GradientBasedOptimizer
Method Name: localFinalizeActualSampling


Project Name: chainer/chainerrl
Commit Name: c0663c23fc4416ce41c9d6be30f9d0b9e8c40441
Time: 2019-04-02
Author: muupan@gmail.com
File Name: chainerrl/agents/ppo.py
Class Name: PPO
Method Name: _update


Project Name: Qiskit/qiskit-aqua
Commit Name: 7735260c7da1eea7afb9dd629ddd17bea9cd8b74
Time: 2020-08-04
Author: jules.gacon@googlemail.com
File Name: qiskit/optimization/algorithms/grover_optimizer.py
Class Name: GroverOptimizer
Method Name: solve


Project Name: suavecode/SUAVE
Commit Name: 165163eb35c0b9f6fb087922a04e1b6146878f07
Time: 2016-03-08
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Flight_Dynamics/Static_Stability/Approximations/Supporting_Functions/extend_to_ref_area.py
Class Name:
Method Name: extend_to_ref_area