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: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/base_classes.py
Class Name: ComplexFeaturizer
Method Name: featurize


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 35755dd5cf2aedc68d93a3a605de786a392e51b1
Time: 2018-08-02
Author: carloderamo@gmail.com
File Name: mushroom/algorithms/value/dqn.py
Class Name: DQN
Method Name: draw_action