dd1575073ca40d69c9d9f5f0d64e7517e23eba8a,framework/Optimizers/parentSelectors/parentSelectors.py,,rankSelection,#Any#,118
Before Change
selectedParent = xr.DataArray(
np.zeros((nParents,np.shape(pop)[1])),
dims=["chromosome","Gene"],
coords={"chromosome":np.arange(nParents),
"Gene": kwargs["variables"]})
return selectedParent
After Change
rank = np.arange(0,pop.shape[0])
data = np.vstack((fitness,index))
dataOrderedByDecreasingFitness = data[:,(-data[0]).argsort()]
dataOrderedByDecreasingFitness[0,:] = rank
dataOrderedByIncreasingPos = dataOrderedByDecreasingFitness[:,dataOrderedByDecreasingFitness[1].argsort()]
orderedRank = dataOrderedByIncreasingPos[0,:]
selectedParent = rouletteWheel(population, fitness=orderedRank , nParents=kwargs["nParents"])
return selectedParent
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: idaholab/raven
Commit Name: dd1575073ca40d69c9d9f5f0d64e7517e23eba8a
Time: 2020-07-06
Author: diego.mandelli@inl.gov
File Name: framework/Optimizers/parentSelectors/parentSelectors.py
Class Name:
Method Name: rankSelection
Project Name: GPflow/GPflowOpt
Commit Name: ee97f87f3d19aad4329fb012b2819d13b48c8fa3
Time: 2017-07-28
Author: ivo.couckuyt@ugent.be
File Name: GPflowOpt/pareto.py
Class Name: Pareto
Method Name: pareto2d_bounds
Project Name: biotite-dev/biotite
Commit Name: 4c52bf72787eb68da4786aa294ffefb07635d200
Time: 2018-05-12
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/structure/ramachandran.py
Class Name:
Method Name: