【文件属性】:
文件名称:inheritance:模拟继承财富的影响
文件大小:1.86MB
文件格式:ZIP
更新时间:2021-05-03 15:24:57
inheritance agent-based-modeling wealth agent-based-simulation ons-data
继承模拟
一种基于代理的模型,用于模拟英国人口,重点关注继承财富的影响。
要求
Python 3.6
requirements.txt列出的软件包
运行模拟
在第一次运行之前,请初始化数据:
make data
或者
python data.py
要运行模拟:
make run
或者
python adapter.py model.yaml
产出
运行模拟将生成一个output.h5 HDF5文件,其中包含以下表格:
data :模拟的每个刻度(年)处的*数据
by_age :在每个刻度上按业务代表年龄细分的数据
history :通过模拟每个代理商的完整历史记录
skill_dist :每个刻度上每个技能级别的座席人数
tree :代理对之间的家庭联系的完整列表
trusts :每个刻度上每个继承信任的数据
提供了用于绘制单个代理人的生命历史的函数:
import panda
【文件预览】:
inheritance-master
----README.md(2KB)
----inheritance.py(21KB)
----raw_data()
--------ONS()
--------census()
----model.yaml(2KB)
----LICENSE(1KB)
----adapter.py(5KB)
----requirements.txt(114B)
----data.py(15KB)
----scenarios.py(11KB)
----Makefile(59B)
----sinks.py(27KB)