Skip to content

Commit

Permalink
[bot] updated notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Econ-ARK Bot authored Sep 2, 2024
1 parent 1a34e73 commit 4e9c565
Show file tree
Hide file tree
Showing 54 changed files with 2,432 additions and 6,451 deletions.
136 changes: 26 additions & 110 deletions examples/Blocks/Model Setup Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "78e88e29",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:48.976018Z",
"iopub.status.busy": "2024-07-11T15:16:48.975763Z",
"iopub.status.idle": "2024-07-11T15:16:49.798632Z",
"shell.execute_reply": "2024-07-11T15:16:49.798098Z"
}
},
"id": "0",
"metadata": {},
"outputs": [],
"source": [
"from HARK.model import RBlock"
Expand All @@ -20,15 +13,8 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "530a91d0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.800729Z",
"iopub.status.busy": "2024-07-11T15:16:49.800389Z",
"iopub.status.idle": "2024-07-11T15:16:49.803565Z",
"shell.execute_reply": "2024-07-11T15:16:49.803116Z"
}
},
"id": "1",
"metadata": {},
"outputs": [],
"source": [
"def rblock_arrival_value(states):\n",
Expand All @@ -49,20 +35,13 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "035c6056",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.805189Z",
"iopub.status.busy": "2024-07-11T15:16:49.804945Z",
"iopub.status.idle": "2024-07-11T15:16:49.849345Z",
"shell.execute_reply": "2024-07-11T15:16:49.848800Z"
}
},
"id": "2",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"DBlock(name='tick', description='', shocks={}, dynamics={'k': <function <lambda> at 0x7f1a02b2cc20>}, reward={})"
"DBlock(name='tick', description='', shocks={}, dynamics={'k': <function <lambda> at 0x7f20856b5000>}, reward={})"
]
},
"execution_count": 3,
Expand All @@ -83,15 +62,8 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "b6eadbc6",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.851035Z",
"iopub.status.busy": "2024-07-11T15:16:49.850750Z",
"iopub.status.idle": "2024-07-11T15:16:49.853452Z",
"shell.execute_reply": "2024-07-11T15:16:49.852959Z"
}
},
"id": "3",
"metadata": {},
"outputs": [],
"source": [
"## create empty two-period-model object\n",
Expand All @@ -104,15 +76,8 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "e53584e1",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.854996Z",
"iopub.status.busy": "2024-07-11T15:16:49.854726Z",
"iopub.status.idle": "2024-07-11T15:16:49.857973Z",
"shell.execute_reply": "2024-07-11T15:16:49.857496Z"
}
},
"id": "4",
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -138,15 +103,8 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "6a95729a",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.859504Z",
"iopub.status.busy": "2024-07-11T15:16:49.859274Z",
"iopub.status.idle": "2024-07-11T15:16:49.861738Z",
"shell.execute_reply": "2024-07-11T15:16:49.861215Z"
}
},
"id": "5",
"metadata": {},
"outputs": [],
"source": [
"def terminal_value_function(k):\n",
Expand All @@ -156,15 +114,8 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "50f1d15e",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.863249Z",
"iopub.status.busy": "2024-07-11T15:16:49.863016Z",
"iopub.status.idle": "2024-07-11T15:16:49.866215Z",
"shell.execute_reply": "2024-07-11T15:16:49.865749Z"
}
},
"id": "6",
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -186,15 +137,8 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "7cf6da6b",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.867674Z",
"iopub.status.busy": "2024-07-11T15:16:49.867435Z",
"iopub.status.idle": "2024-07-11T15:16:49.870636Z",
"shell.execute_reply": "2024-07-11T15:16:49.870182Z"
}
},
"id": "7",
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -214,15 +158,8 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "cbe7a0c1",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.872109Z",
"iopub.status.busy": "2024-07-11T15:16:49.871888Z",
"iopub.status.idle": "2024-07-11T15:16:49.874244Z",
"shell.execute_reply": "2024-07-11T15:16:49.873784Z"
}
},
"id": "8",
"metadata": {},
"outputs": [],
"source": [
"# probably we need to put the stages in a sublist ...\n",
Expand All @@ -234,15 +171,8 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "0cb8c7c7",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.875681Z",
"iopub.status.busy": "2024-07-11T15:16:49.875439Z",
"iopub.status.idle": "2024-07-11T15:16:49.878705Z",
"shell.execute_reply": "2024-07-11T15:16:49.878248Z"
}
},
"id": "9",
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -265,15 +195,8 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "614e2e3b",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.880213Z",
"iopub.status.busy": "2024-07-11T15:16:49.879844Z",
"iopub.status.idle": "2024-07-11T15:16:49.883406Z",
"shell.execute_reply": "2024-07-11T15:16:49.882923Z"
}
},
"id": "10",
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -309,15 +232,8 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "a0e05c58",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T15:16:49.884943Z",
"iopub.status.busy": "2024-07-11T15:16:49.884686Z",
"iopub.status.idle": "2024-07-11T15:16:49.887006Z",
"shell.execute_reply": "2024-07-11T15:16:49.886565Z"
}
},
"id": "11",
"metadata": {},
"outputs": [],
"source": [
"# This doesn't need to be explicit because the existence of arrival value functions are implied already.\n",
Expand Down Expand Up @@ -346,7 +262,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
33 changes: 7 additions & 26 deletions examples/Calibration/Income_calibrations.ipynb

Large diffs are not rendered by default.

68 changes: 12 additions & 56 deletions examples/Calibration/Life_Cycle_example.ipynb

Large diffs are not rendered by default.

33 changes: 7 additions & 26 deletions examples/Calibration/SCF_distributions.ipynb

Large diffs are not rendered by default.

27 changes: 7 additions & 20 deletions examples/Calibration/Sabelhaus_Song_var_profiles.ipynb

Large diffs are not rendered by default.

55 changes: 11 additions & 44 deletions examples/Calibration/US_SSA_life_tables.ipynb

Large diffs are not rendered by default.

40 changes: 6 additions & 34 deletions examples/ConsBequestModel/example_AccidentalBequestComp.ipynb

Large diffs are not rendered by default.

51 changes: 8 additions & 43 deletions examples/ConsBequestModel/example_AccidentalBequestPortComp.ipynb

Large diffs are not rendered by default.

83 changes: 16 additions & 67 deletions examples/ConsBequestModel/example_TerminalBequest.ipynb

Large diffs are not rendered by default.

166 changes: 54 additions & 112 deletions examples/ConsBequestModel/example_TerminalBequestPort.ipynb

Large diffs are not rendered by default.

83 changes: 16 additions & 67 deletions examples/ConsBequestModel/example_WarmGlowBequest.ipynb

Large diffs are not rendered by default.

166 changes: 54 additions & 112 deletions examples/ConsBequestModel/example_WarmGlowBequestPort.ipynb

Large diffs are not rendered by default.

80 changes: 12 additions & 68 deletions examples/ConsBequestModel/example_WealthPortfolio.ipynb

Large diffs are not rendered by default.

42 changes: 7 additions & 35 deletions examples/ConsIndShockModel/Finite Cyclical Test.ipynb

Large diffs are not rendered by default.

101 changes: 17 additions & 84 deletions examples/ConsIndShockModel/IndShockConsumerType.ipynb

Large diffs are not rendered by default.

71 changes: 12 additions & 59 deletions examples/ConsIndShockModel/KinkedRconsumerType.ipynb

Large diffs are not rendered by default.

134 changes: 29 additions & 105 deletions examples/ConsIndShockModel/PerfForesightConsumerType.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 4e9c565

Please sign in to comment.