Skip to content

Commit

Permalink
fresh kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
glibesyck committed Jul 2, 2024
1 parent 8920cf5 commit 8a037d9
Showing 1 changed file with 27 additions and 67 deletions.
94 changes: 27 additions & 67 deletions tutorials/W2D4_Macrolearning/W2D4_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -92,8 +91,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -121,8 +119,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand All @@ -147,8 +144,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand All @@ -165,8 +161,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -221,8 +216,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -252,8 +246,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -349,7 +342,6 @@
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {},
"pycharm": {
"name": "#%%\n"
}
Expand Down Expand Up @@ -382,9 +374,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"# to_remove solution\n",
Expand Down Expand Up @@ -420,9 +410,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"print(f\"The number of days is {days.shape[0]}.\")"
Expand All @@ -431,9 +419,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"print(f\"The number of peaks is {np.sum((np.diff(prices)[:-1] > 0) & (np.diff(prices)[1:] < 0))}.\")"
Expand All @@ -455,9 +441,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#take only summer data\n",
Expand Down Expand Up @@ -490,9 +474,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"# to_remove solution\n",
Expand Down Expand Up @@ -532,8 +514,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -563,9 +544,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#take only autumn data\n",
Expand All @@ -592,8 +571,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -625,9 +603,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#to_remove explanation\n",
Expand All @@ -646,8 +622,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand All @@ -672,8 +647,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand All @@ -698,9 +672,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#to_remove explanation\n",
Expand All @@ -721,8 +693,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -770,9 +741,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"shifted_phi = - 2 * np.pi / 7\n",
Expand All @@ -791,9 +760,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#take only summer shifted data\n",
Expand All @@ -816,9 +783,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"# to_remove solution\n",
Expand All @@ -839,8 +804,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -881,9 +845,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {}
},
"metadata": {},
"outputs": [],
"source": [
"#to_remove explanation\n",
Expand All @@ -901,8 +863,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand All @@ -929,8 +890,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
"cellView": "form"
},
"outputs": [],
"source": [
Expand Down

0 comments on commit 8a037d9

Please sign in to comment.