From 95fe33083df8d0e1cd18e3339fb56490ce6f9ad6 Mon Sep 17 00:00:00 2001 From: Carsten Date: Tue, 3 Jul 2018 14:22:49 +0200 Subject: [PATCH] comments --- Project/Tools/User_Interface.ipynb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Project/Tools/User_Interface.ipynb b/Project/Tools/User_Interface.ipynb index 05efedc..4a26285 100644 --- a/Project/Tools/User_Interface.ipynb +++ b/Project/Tools/User_Interface.ipynb @@ -56,7 +56,10 @@ }, "outputs": [], "source": [ + "#locally defined based on the first analysis of parts of our twitter data: resulting in the 20 most used emojis\n", + "#we used them for our first approaches of prediction\n", "top_emojis = ['😂','😭','😍','😩','😊','😘','🙏','🙌','😉','😁','😅','😎','😢','😒','😏','😌','😔','😋','😀','😤']\n", + "#possible initial set of predictions, only used in naive test cases\n", "predictions = [\"🤐\",\"🤑\",\"🤒\",\"🤓\",\"🤔\",\"🤕\",\"🤗\",\"🤘\"]" ] }, @@ -96,6 +99,7 @@ } ], "source": [ + "#navigation into right path and generating classifier\n", "import sys\n", "sys.path.append(\"..\")\n", "\n", @@ -323,7 +327,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 24, "metadata": { "collapsed": true }, @@ -331,7 +335,7 @@ "source": [ "text_input.on_submit(submit_new_message)\n", "\n", - "#text_input.observe(lambda b: trigger_new_prediction(None, text_input.value))" + "text_input.observe(lambda b: trigger_new_prediction(None, text_input.value))" ] }, { @@ -547,13 +551,13 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "3b8a6a311c1e4a1bb2b711d59246577a", + "model_id": "1dddd15a4fa74985a42761c4de6a5598", "version_major": 2, "version_minor": 0 },