438b2a63d195c8f5ccecae35d577d8bfde354406,framework/Optimizers/GeneticAlgorithm.py,GeneticAlgorithm,_useRealization,#GeneticAlgorithm#Any#Any#,352

Before Change


    for i in range(np.shape(children)[0]):
      newRlz={}
      for _,var in enumerate(self.toBeSampled.keys()):
        newRlz[var] = float(children.loc[i,var].values)
      self._submitRun(newRlz, traj, self.getIteration(traj))

After Change


         "data":children.data}
    // newRlz = xr.Dataset.from_dict(d)
    // children.to_dataset(name = "children")
    newRlz = xr.Dataset({("chromosome","Gene"):children.data})
    // newRlz = xr.Dataset(({"chromosome":[1,2,3,4,5,6,7,8,9,10],"Gene":[0,1,2,3,4,5]},children.data))
    // // Add second DataArray to existing dataset (ds)
    // ds["var2"] = var2
    // newRlz = xr.Dataset.from_dict(childrenDict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: idaholab/raven
Commit Name: 438b2a63d195c8f5ccecae35d577d8bfde354406
Time: 2020-08-22
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization


Project Name: PyMVPA/PyMVPA
Commit Name: 3ad252fc2ee94f336a6d1a31d128e38ed0d147f0
Time: 2010-01-12
Author: debian@onerussian.com
File Name: mvpa/tests/test_datasetng.py
Class Name:
Method Name: test_repr


Project Name: PyMVPA/PyMVPA
Commit Name: f7a563088ae7c8656b0170f9b205d061776d209f
Time: 2010-03-10
Author: debian@onerussian.com
File Name: mvpa/measures/anova.py
Class Name: CompoundOneWayAnova
Method Name: _call