From 54f865e188e2474fd6c23439251fbbfba9bc310a Mon Sep 17 00:00:00 2001 From: Anes Benmerzoug Date: Wed, 8 May 2024 06:12:58 +0200 Subject: [PATCH] Add more description and show W matrix in DMDc section --- .../nb_70_machine_learning_control.ipynb | 198 +++++++++++++++++- 1 file changed, 190 insertions(+), 8 deletions(-) diff --git a/notebooks/nb_70_machine_learning_control.ipynb b/notebooks/nb_70_machine_learning_control.ipynb index 79610a9..46c26da 100644 --- a/notebooks/nb_70_machine_learning_control.ipynb +++ b/notebooks/nb_70_machine_learning_control.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "8497a4b2-a020-4fba-8539-bc1361a34023", "metadata": { "editable": true, @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "f7339d3d-eae4-4e05-a7fb-050df96782e7", "metadata": { "init_cell": true, @@ -41,14 +41,184 @@ "ActiveScene" ] }, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%presentation_style" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "6e892149-098a-42c7-b554-bbb83918888d", "metadata": { "init_cell": true, @@ -66,7 +236,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "cd78d373-34af-4b57-8d16-dbf6f662331d", "metadata": { "init_cell": true, @@ -79,7 +249,16 @@ "ActiveScene" ] }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pygame 2.5.2 (SDL 2.28.2, Python 3.10.12)\n", + "Hello from the pygame community. https://www.pygame.org/contribute.html\n" + ] + } + ], "source": [ "%autoreload\n", "import warnings\n", @@ -684,7 +863,9 @@ "id": "e2ec06ac-e9e8-4918-9ea8-8107a16f7104", "metadata": {}, "source": [ - "#### Cart " + "#### Cart\n", + "\n", + "We will use the DMDc method to fit a model on the data collected from the Cart environment. For that we will make sure of the [pykoopman](https://pykoopman.readthedocs.io/en/master/index.html) package." ] }, { @@ -727,7 +908,8 @@ "source": [ "display_array(\"A\", model.A)\n", "display_array(\"B\", model.B)\n", - "display_array(\"C\", model.C)" + "display_array(\"C\", model.C)\n", + "display_array(\"W\", model.W)" ] }, {