Example script output is too sparse
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
Start with the example script examples/run_ogcore_example.py and the sample output in the issue, which shows the sparse steady-state and transition-path messages. Compare it with the output settings in OG-USA's examples/run_ogusa.py, which the issue names as the preferred behavior. Done means the run prints the root-finding equation errors for the steady state and the distance measures for the transition path.
由索引模型根据 Issue 内容生成。
描述
The output during the execution of the example script ./examples/run_ogcore_example.py is very sparse right now. I ran the script with the updated virtual environment from PR #1107. And I got the following output for the steady state and the transition path computation. My problem with this sparse output is that you don't see the root finding equation errors in the steady-state computation and you don't see the distance measures in the transition path computation. I much prefer the output setting in the current version of OG-USA's example script run_ogusa.py.
(ogcore) (base) richardevans@Richards-MBP-2 OG-Core % python examples/run_ogcore_example.py
Number of workers = 7
making dir: /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_BASELINE/SS
making dir: /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_BASELINE/TPI
In runner, baseline is True
JUST SAVED SS output to /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_BASELINE/SS/SS_vars.pkl
Maximum debt ratio: 1.4376602575049324
Maximum debt ratio: 1.5306431600090473
Maximum debt ratio: 1.5681210897102444
Maximum debt ratio: 1.591509571895058
Maximum debt ratio: 1.6052511836648862
Maximum debt ratio: 1.6131719356974827
Maximum debt ratio: 1.6176686360086716
Maximum debt ratio: 1.620182555052505
Maximum debt ratio: 1.6215656415305617
Maximum debt ratio: 1.622313160747373
Maximum debt ratio: 1.6227088217577297
Maximum debt ratio: 1.6229128736431444
Maximum debt ratio: 1.6230145443681707
Maximum debt ratio: 1.6230627581027102
Maximum debt ratio: 1.6230838772769363
Maximum debt ratio: 1.6230918158532577
Maximum debt ratio: 1.6230937290085614
Maximum debt ratio: 1.623093170594312
Maximum debt ratio: 1.6230918192724921
Maximum debt ratio: 1.6230904060836127
Maximum debt ratio: 1.6230892027003434
Time path iteration complete.
It took 877.2762980461121 seconds to get that part done.
run time = 877.2779579162598
making dir: /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_REFORM/SS
making dir: /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_REFORM/TPI
In runner, baseline is False
JUST SAVED SS output to /Users/richardevans/Docs/Economics/OSE/OG/OG-Core/examples/OG-Core-Example/OUTPUT_REFORM/SS/SS_vars.pkl
Maximum debt ratio: 1.3178146443021885
Maximum debt ratio: 1.3948360724350035
Maximum debt ratio: 1.4294376696454172
Maximum debt ratio: 1.4504336670124542
Maximum debt ratio: 1.4628070896555136
Maximum debt ratio: 1.469980769868076
Maximum debt ratio: 1.4740725342856815
Maximum debt ratio: 1.4763720047674525
Maximum debt ratio: 1.4776454537692012
Maximum debt ratio: 1.4783390967469623
Maximum debt ratio: 1.4787100621146265
Maximum debt ratio: 1.4789041232183422
Maximum debt ratio: 1.4790028143059548
Maximum debt ratio: 1.4790511065965892
Maximum debt ratio: 1.4790734183665812
Maximum debt ratio: 1.4790827696751763
Maximum debt ratio: 1.479085951403507
Maximum debt ratio: 1.4790864063267257
Maximum debt ratio: 1.47908581298357
Maximum debt ratio: 1.4790849431276893
Maximum debt ratio: 1.4790841176510041
Time path iteration complete.
It took 1004.4071719646454 seconds to get that part done.
run time = 1004.408695936203
total time was 1885.3068742752075
Percentage changes in aggregates: Year Variable 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2021-2030 SS
0 GDP ($Y_t$) -0.17 -0.14 -0.22 -0.22 -0.21 -0.19 -0.16 -0.12 -0.10 -0.07 -0.16 -0.39
1 Consumption ($C_t$) -0.08 1.05 0.13 -0.13 -0.24 -0.32 -0.37 -0.42 -0.43 -0.44 -0.12 -0.72
2 Capital Stock ($K_t$) -0.37 -0.41 -0.66 -0.73 -0.75 -0.74 -0.71 -0.64 -0.60 -0.54 -0.62 -1.51
3 Labor ($L_t$) -0.05 0.00 0.02 0.05 0.08 0.11 0.14 0.16 0.17 0.18 0.08 0.22
4 Real interest rate ($r_t$) -3.05 -2.94 -2.64 -2.52 -2.47 -2.45 -2.45 -2.58 -2.61 -2.65 -2.64 -1.40
5 Wage rate ($w_{t}$) -0.11 -0.14 -0.24 -0.27 -0.29 -0.30 -0.30 -0.28 -0.27 -0.25 -0.25 -0.61
cc: @jdebacker
- 主要语言
- Python
- 星标
- 85
- 派生
- 153
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 22
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PSLmodels/OG-Core 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 57/100
PSLmodels/OG-Core#1218 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 57/100
维护者通常 1 天内回复
-
Resource-constraint check cannot exempt the terminal period without waiving the whole path可能已有人在做 @arihantlodha-cmd 于 47 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
PSLmodels/OG-Core#1210 · 1 条评论 ·
维护者通常 1 天内回复
查看 PSLmodels/OG-Core 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
django-cms/djangocms-frontend#413 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
NanmiCoder/MediaCrawler#1004 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
facebookresearch/xformers#1417 ·
-
question
难度 1/5 1 小时以内 新手友好度 68/100
vllm-project/vime#524 ·
维护者通常 7 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
FinanceFlash/unvibecode#675 ·
维护者通常 1 天内回复