e8c8bd77966e726e0632b9c5822a995732662fb1,framework/Optimizers/SPSA.py,SPSA,localStillReady,#SPSA#Any#Any#,113

Before Change


          if len(self.submissionQueue[traj]) == 0:
            ak = self._computeGainSequenceAk(self.paramDict,self.counter["varsUpdate"][traj],traj) // Compute the new ak
            self.optVarsHist[traj][self.counter["varsUpdate"][traj]] = {}
            varK = copy.deepcopy(self.counter["recentOptHist"][traj][0]["inputs"])
            varKPlus,modded = self._generateVarsUpdateConstrained(traj,ak,gradient,varK)
            //check for redundant paths
            if len(self.optTrajLive) > 1 and self.counter["solutionUpdate"][traj] > 0:
              self._removeRedundantTraj(traj, varKPlus)
            // if trajectory was killed for redundancy, continue on to check next trajectory for readiness

After Change


        elif reason in ["seeking new opt point","received recommended point"]:
          self.nextActionNeeded = ("add more opt point evaluations",traj)
          break
        elif reason in "failed run":
          self.nextActionNeeded = ("add more opt point evaluations",traj)
          if len(self.submissionQueue[traj]) == 0:
            gradient = self.counter["gradientHistory"][traj][0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: idaholab/raven
Commit Name: e8c8bd77966e726e0632b9c5822a995732662fb1
Time: 2017-09-25
Author: andrea.alfonsi@inl.gov
File Name: framework/Optimizers/SPSA.py
Class Name: SPSA
Method Name: localStillReady


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 932220257ae4c5a0c7b0eaf784fb6410c9bd20eb
Time: 2018-03-24
Author: jk7@tigergpu.princeton.edu
File Name: plasma/models/mpi_runner.py
Class Name:
Method Name: mpi_train


Project Name: idaholab/raven
Commit Name: cd67dba10273d0d9c3d7ab331fcc3580efdd4d9c
Time: 2020-12-08
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/MELCOR/MELCORdata.py
Class Name: MELCORdata
Method Name: returnVolumeHybro