Population
pangadfs.populate
¶
PopulateDefault()
¶
Bases: PopulateBase
Source code in pangadfs/base.py
populate(*, pospool, posmap, population_size, probcol='prob', **kwargs)
¶
Creates individuals in population
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pospool
|
Dict[str, DataFrame]
|
pool split into positions |
required |
posmap
|
Dict[str, int]
|
positions & accompanying roster slots |
required |
population_size
|
int
|
number of individuals to create |
required |
probcol
|
str
|
the dataframe column with probabilities |
'prob'
|
**kwargs
|
keyword arguments |
{}
|
Returns:
Type | Description |
---|---|
ndarray
|
ndarray of size (population_size, sum(posmap.values())) |