From 9205ebb0e86a5fd7bceb7a8d5c6cd6fcd481d3ae Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 16 Oct 2020 15:25:58 +0200 Subject: [PATCH] Update for new ml4f --- examples/gesture/train_model.ipynb | 597 +++++++++++++++-------------- 1 file changed, 304 insertions(+), 293 deletions(-) diff --git a/examples/gesture/train_model.ipynb b/examples/gesture/train_model.ipynb index bc21916..3271576 100644 --- a/examples/gesture/train_model.ipynb +++ b/examples/gesture/train_model.ipynb @@ -11,7 +11,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -19,41 +19,24 @@ "output_type": "stream", "text": [ "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mdeprecated\u001b[0m core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.\n", - "\u001b[K\u001b[?25h/usr/local/bin/ml4f -> /usr/local/lib/node_modules/ml4f/ml4fipt: \u001b[32;40mtiming\u001b[0m \u001b[35maction:finalize\u001b[0m\u001b[0m\u001b[K[K\n", + "\u001b[K\u001b[?25h/usr/local/bin/ml4f -> /usr/local/lib/node_modules/ml4f/ml4f\u001b[35mfinalize\u001b[0m /usr/local/lib/node_modules\u001b[0m\u001b[KK\u001b[KK\n", "/usr/local/bin/ts-node -> /usr/local/lib/node_modules/ts-node/dist/bin.js\n", "/usr/local/bin/ts-script -> /usr/local/lib/node_modules/ts-node/dist/bin-script-deprecated.js\n", "/usr/local/bin/ts-node-transpile-only -> /usr/local/lib/node_modules/ts-node/dist/bin-transpile.js\n", "/usr/local/bin/ts-node-script -> /usr/local/lib/node_modules/ts-node/dist/bin-script.js\n", "/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc\n", "/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsserver\n", + "+ ml4f@1.4.0\n", "+ ts-node@9.0.0\n", "+ typescript@4.0.3\n", - "+ ml4f@1.3.0\n", - "updated 3 packages in 8.02s\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mdeprecated\u001b[0m popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mdeprecated\u001b[0m request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mdeprecated\u001b[0m har-validator@5.1.5: this library is no longer supportedt\u001b[0m\u001b[K\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mrm\u001b[0m not removing /Users/michal/src/jupyter-jacdac/node_modules/.bin/semver as it wasn't installed by /Users/michal/src/jupyter-jacdac/node_modules/semver\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mrm\u001b[0m not removing /Users/michal/src/jupyter-jacdac/node_modules/.bin/marked as it wasn't installed by /Users/michal/src/jupyter-jacdac/node_modules/marked\n", - "\u001b[K\u001b[?25h\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[34;40mnotice\u001b[0m\u001b[35m\u001b[0m created a lockfile as package-lock.json. You should commit this file.[0m\u001b[K\n", - "\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m\u001b[35m\u001b[0m @lumino/coreutils@1.5.3 requires a peer of crypto@1.0.1 but none is installed. You must install peer dependencies yourself.\n", - "\u001b[0m\n", - "+ @types/node@14.11.8\n", - "added 147 packages from 15 contributors, removed 363 packages, updated 434 packages and audited 1022 packages in 64.183s\n", - "\n", - "43 packages are looking for funding\n", - " run `npm fund` for details\n", - "\n", - "found \u001b[92m0\u001b[0m vulnerabilities\n", - "\n", - "\u001b[K\u001b[?25h7m \u001b[27m\u001b[90m░░░░░░\u001b[0m⸩ ⠇ postinstall: \u001b[7msill\u001b[0m \u001b[35minstall\u001b[0m printInstalled\u001b[0m\u001b[K" + "updated 3 packages in 6.501s\n" ] } ], "source": [ "! npm install -g -u typescript ts-node ml4f\n", "#! pip3 install tensorflow==2.3 tensorboard=2.3\n", - "! npm install @types/node" + "#! npm install @types/node" ] }, { @@ -65,7 +48,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -125,7 +108,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 29, "metadata": { "colab": {}, "colab_type": "code", @@ -139,7 +122,7 @@ "\n", "for fn in glob.glob(\"./built/seg/*.csv\"):\n", " data = pd.read_csv(fn)\n", - " #data.plot(figsize=(20,7),title=fn)\n" + " data.plot(figsize=(20,7),title=fn)\n" ] }, { @@ -305,15 +288,24 @@ ] }, "outputs": [ + { + "data": { + "text/plain": [ + "Reusing TensorBoard on port 6007 (pid 17933), started 5:06:41 ago. (Use '!kill 17933' to kill it.)" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/html": [ "\n", - " \n", "