Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 0x7ff7da180160>}, 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.19"
}
},
"nbformat": 4,
Expand Down
33 changes: 7 additions & 26 deletions examples/Calibration/Income_calibrations.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 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.

16 changes: 8 additions & 8 deletions examples/Calibration/US_SSA_life_tables.ipynb

Large diffs are not rendered by default.

178 changes: 17 additions & 161 deletions examples/ConsAggShockModel/AggShockConsumerType.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.

26 changes: 13 additions & 13 deletions examples/ConsBequestModel/example_TerminalBequest.ipynb

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions examples/ConsBequestModel/example_TerminalBequestPort.ipynb

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions examples/ConsBequestModel/example_WarmGlowBequest.ipynb

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions examples/ConsBequestModel/example_WarmGlowBequestPort.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions examples/ConsGenIncProcessModel/GenIncProcessConsumerType.ipynb

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions examples/ConsHealthModel/BasicHealthConsumerType.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/ConsIndShockModel/Finite Cyclical Test.ipynb

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions examples/ConsIndShockModel/IndShockConsumerType.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/ConsIndShockModel/KinkedRconsumerType.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions examples/ConsIndShockModel/PerfForesightConsumerType.ipynb

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions examples/ConsLaborModel/LaborIntMargConsumerType.ipynb

Large diffs are not rendered by default.

33 changes: 22 additions & 11 deletions examples/ConsMarkovModel/MarkovConsumerType.ipynb

Large diffs are not rendered by default.

Loading