69904e2f12f32f2336bb5c8434b4e690f6df02ea,framework/Models/HybridModel.py,HybridModel,isRomConverged,#HybridModel#Any#,361

Before Change


    for cvKey, metricValues in outputDict.items():
      //for targetName, metricInfo in outputDict.items():
      // very temporary solution
      info = self.cvInstance.interface._returnCharacteristicsOfCvGivenOutputName(cvKey)
      if info["targetName"] in exploredTargets:
        self.raiseAnError(IOError, "Multiple metrics are used in cross validation "", self.cvInstance.name, "". Currently, this can not be processed by the HybridModel "", self.name, ""!")
      exploredTargets.append(info["targetName"])
      name = utils.first(self.cvInstance.interface.metricsDict.keys())
      converged = self.checkErrors(info["metricType"], metricValues)
    return converged

After Change


    converged = True
    // very temporary solution
    for romName, metricInfo in outputDict.items():
      converged = self.checkErrors(metricInfo[0], metricInfo[1])
    return converged

  def checkErrors(self, metricType, metricResults):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: idaholab/raven
Commit Name: 69904e2f12f32f2336bb5c8434b4e690f6df02ea
Time: 2019-08-09
Author: congjian.wang@inl.gov
File Name: framework/Models/HybridModel.py
Class Name: HybridModel
Method Name: isRomConverged


Project Name: idaholab/raven
Commit Name: 09e47cabaf09c32d402e8527d3804bac5f118ccf
Time: 2018-09-04
Author: congjian.wang@inl.gov
File Name: framework/PostProcessors/DataMining.py
Class Name: DataMining
Method Name: inputToInternalForHistorySet


Project Name: idaholab/raven
Commit Name: 69904e2f12f32f2336bb5c8434b4e690f6df02ea
Time: 2019-08-09
Author: congjian.wang@inl.gov
File Name: framework/Models/HybridModel.py
Class Name: HybridModel
Method Name: isRomConverged


Project Name: idaholab/raven
Commit Name: b678edc4f04ab621b9f336d00eec1b6f0f1ac50a
Time: 2017-07-10
Author: andrea.alfonsi@inl.gov
File Name: framework/Models/EnsembleModel.py
Class Name: EnsembleModel
Method Name: initialize