diff --git a/Project/simple_approach/simple_twitter_learning.ipynb b/Project/simple_approach/simple_twitter_learning.ipynb index 5a828f5..d3c5821 100644 --- a/Project/simple_approach/simple_twitter_learning.ipynb +++ b/Project/simple_approach/simple_twitter_learning.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -20,6 +20,15 @@ "from sklearn.preprocessing import MultiLabelBinarizer" ] }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "SINGLE_LABEL = True" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -37,11 +46,11 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ - "data_root_folder = \"../data/en/\" # i created a symlink here" + "data_root_folder = \"./data_en/\" # i created a symlink here" ] }, { @@ -53,7 +62,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -76,24 +85,1101 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 5, "metadata": {}, "outputs": [ { - "ename": "ValueError", - "evalue": "Expected object or value", - "output_type": "error", - "traceback": [ - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[1;31mValueError\u001b[0m Traceback (most recent call last)", - "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mtwitter_data\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread_json\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mjson_files\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mencoding\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m\"utf-8\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2\u001b[0m \u001b[0mtwitter_data\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\io\\json\\json.py\u001b[0m in \u001b[0;36mread_json\u001b[1;34m(path_or_buf, orient, typ, dtype, convert_axes, convert_dates, keep_default_dates, numpy, precise_float, date_unit, encoding, lines, chunksize, compression)\u001b[0m\n\u001b[0;32m 364\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mjson_reader\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 365\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 366\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[0mjson_reader\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 367\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 368\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\io\\json\\json.py\u001b[0m in \u001b[0;36mread\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 465\u001b[0m )\n\u001b[0;32m 466\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 467\u001b[1;33m \u001b[0mobj\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_get_object_parser\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdata\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 468\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mclose\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 469\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mobj\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\io\\json\\json.py\u001b[0m in \u001b[0;36m_get_object_parser\u001b[1;34m(self, json)\u001b[0m\n\u001b[0;32m 482\u001b[0m \u001b[0mobj\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 483\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mtyp\u001b[0m \u001b[1;33m==\u001b[0m \u001b[1;34m'frame'\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 484\u001b[1;33m \u001b[0mobj\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mFrameParser\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mjson\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mparse\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 485\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 486\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mtyp\u001b[0m \u001b[1;33m==\u001b[0m \u001b[1;34m'series'\u001b[0m \u001b[1;32mor\u001b[0m \u001b[0mobj\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\io\\json\\json.py\u001b[0m in \u001b[0;36mparse\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 574\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 575\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 576\u001b[1;33m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_parse_no_numpy\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 577\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 578\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mobj\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\io\\json\\json.py\u001b[0m in \u001b[0;36m_parse_no_numpy\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 791\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0morient\u001b[0m \u001b[1;33m==\u001b[0m \u001b[1;34m\"columns\"\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 792\u001b[0m self.obj = DataFrame(\n\u001b[1;32m--> 793\u001b[1;33m loads(json, precise_float=self.precise_float), dtype=None)\n\u001b[0m\u001b[0;32m 794\u001b[0m \u001b[1;32melif\u001b[0m \u001b[0morient\u001b[0m \u001b[1;33m==\u001b[0m \u001b[1;34m\"split\"\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 795\u001b[0m decoded = dict((str(k), v)\n", - "\u001b[1;31mValueError\u001b[0m: Expected object or value" - ] + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
EMOJIHASHTAGSLINKED_USERdatetimeidlangpersonreply_totext
0[🔥, 👏][][]2017-11-01 13:29:00925716304635547600en31507978NaNfashionbombdaily's photo <EMOJI><EMOJI>🏼
1[🤦][][]2017-11-01 13:29:00925716304664911900en231994649NaNIt’s scary how on point my horoscope be <EMOJI...
2[😄][][]2017-11-01 13:29:03925716317214089200en2592765104NaNWoooaaaahhh <EMOJI>
3[📷][][]2017-11-01 13:29:04925716321416949800en278737933NaN<EMOJI> vivalcli: Portraits by Zhao Guojing an...
4[😩, 😩][][@hiphopphiIes]2017-11-01 13:29:06925716329801310200en8245862536349819009.257162e+17<USER> i wanna know too<EMOJI><EMOJI>
5[😭, 💓][][@WizMommma]2017-11-01 13:29:02925716313019965400en15819538149.257088e+17<USER> veda was yoda too <EMOJI><EMOJI>
6[😂][][]2017-11-01 13:29:05925716325607133200en1001999683NaNI’m less stressed about turning 30 now <EMOJI>...
7[💯][][]2017-11-01 13:29:07925716334008082400en745222369183043600NaNFull charged. <EMOJI>
8[🙄][][@SeaDimon, @lsarsour]2017-11-01 13:29:09925716342401052700en7985571552175391009.257147e+17<USER> That’s part of the problem, (they) <USE...
9[😟, 😥, 😢][][@Ian_khetye]2017-11-01 13:29:10925716346570240000en7443960391264215009.250629e+17<USER> got me emotional there<EMOJI><EMOJI><EM...
10[🌻][][]2017-11-01 13:29:13925716359182520300en7214900101182054008.965900e+17back to the yellow <EMOJI>
11[🍁, 🌺, 🍂][][@Dimafadma]2017-11-01 13:29:15925716367558545400en5205367239.257159e+17<USER> Happy month to you and your loved ones ...
12[🍃][#mortdale, #partofthefamily, #gorgeousboy][]2017-11-01 13:29:16925716371735900200en850852815941517300NaNMaxx and Patricia. Family hangs at For Good He...
13[💭, 🤦][][]2017-11-01 13:29:20925716388513230800en914145041588867100NaNI need to STOP beating myself up with my thoug...
14[😍, 😘][#7YearsOfKMH2][]2017-11-01 13:29:20925716388525645800en2425405622NaNCutest Son <EMOJI>Roll no. 31 <EMOJI> <HASHTAG>
15[😜][][]2017-11-01 13:29:22925716396931240000en4614871873NaNBy the summer I should have everything up and ...
16[😂, 🔥][][]2017-11-01 13:29:23925716401125331000en2831608345NaNI know my English is not that good but that do...
17[💕][][@yungbabytate]2017-11-01 13:29:23925716401133948900en7885719746330092009.255778e+17<USER> I <EMOJI> u mama
18[😉][][@cmckenney]2017-11-01 13:29:23925716401125544000en2183078029.257115e+17<USER> That picture was NOT taken this morning...
19[👅][#footfetishnation][]2017-11-01 13:29:25925716409489002500en885261166146179100NaNWelcome to <HASHTAG> <EMOJI>
20[👌, 🙂][][]2017-11-01 13:29:25925716409497272300en831437760833609700NaNAwkward <EMOJI><EMOJI>
21[🤗, 📺][][]2017-11-01 13:29:26925716413699854300en231664542NaNback at it with supernatural <EMOJI><EMOJI>
22[💯][][]2017-11-01 13:29:26925716413679009800en3196847035NaNOne of the best things I've learned was to sto...
23[👅, 💦, 🍑][][@ctrlpurp]2017-11-01 13:29:29925716426278735900en9184928583526359009.257161e+17<USER> Can I taste?<EMOJI><EMOJI><EMOJI>
24[💔][][@saunders_court1]2017-11-01 13:29:30925716430473039900en34711873379.257163e+17<USER> we miss you ☹️<EMOJI>
25[🤐, 🤐, 🤐][][]2017-11-01 13:29:31925716434667184100en780060488600199200NaNActually my bias in WJSN are Eunseo &amp; Bona...
26[😴][][]2017-11-01 13:29:32925716438853345300en388380690NaNI so cannot be bothered with the rest of the d...
27[😂][][@xxxtentacion]2017-11-01 13:29:35925716451457163300en899320696869974000NaN<USER> 2lit4life<EMOJI>
28[😂, 🙄][][]2017-11-01 13:29:35925716451461357600en784790670NaNI’m not stop saying that!<EMOJI><EMOJI>
29[🎉, 🎂, 🎈, 🎊, 🎁, 💜][][@justinerooney_]2017-11-01 13:29:37925716459828936700en3051266655NaN<USER> HAPPY BIHDAY <EMOJI><EMOJI><EMOJI><EMOJ...
..............................
68703[😕][#halloweencostumes][]2017-11-01 07:23:04925624214522036200en1672876458NaN<HASHTAG> this one falls under the weird crazy...
68704[😂, 😩][][]2017-11-01 07:23:05925624218682777600en382473866NaNI'm not allowed to have chocolates yet, then I...
68705[😂][#MUFC][]2017-11-01 07:23:06925624222889766900en893145405457911800NaNManchester United manager Mourinho slams 'spec...
68706[💖][][]2017-11-01 07:23:07925624227088121900en240378516NaN<EMOJI> en Bushwhick
68707[🌆, 👉, 🚖, 📞][#BurkeCentre][]2017-11-01 07:23:18925624273237983200en784620573209002000NaN: <HASHTAG> <EMOJI> <EMOJI><EMOJI> For Taxi <E...
68708[😁][][@mychosliaheart, @BarrettoJulia, @iamjoshuaga...2017-11-01 07:23:18925624273212805100en1709981879.254136e+17<USER> <USER> <USER> Look, Mammeh and Daddeh! ...
68709[😋][][]2017-11-01 07:23:24925624298395533300en1348667816NaNLife is so good with you <EMOJI>
68710[👌, 🎃, 😘][#portlandoregon, #portlandhalloween, #carrie…][]2017-11-01 07:23:24925624298378801200en722481645765300200NaNHappy Halloween! <EMOJI>🏽<EMOJI><EMOJI> <HASHT...
68711[👍][][@8limbsbondi...]2017-11-01 07:23:26925624306779897900en2443251500NaNSome work on the ropes in today’s boxing class...
68712[😭][][]2017-11-01 07:23:27925624310974136300en2406186390NaNScotty and Kristen’s halloween costumes <EMOJI>
68713[😂][][@rfrandrea, @AdaaanAndyyy]2017-11-01 07:23:30925624323557146600en10394481499.256150e+17<USER> <USER> May pre-month celebration sis <E...
68714[😭, 😭, 💘][][@peachshua1230]2017-11-01 07:23:31925624327755591700en8450855445896724009.256009e+17<USER> Awww <EMOJI> Ajsksjdjd im smiling like ...
68715[😫, ✋][][]2017-11-01 07:23:34925624340342812700en924752524871131100NaNI hate when I send a text or snap n I'm so anx...
68716[😂, 🙁][][]2017-11-01 07:23:34925624340355280900en419493819NaNThe answer is no I have no plans and I never l...
68717[😭][][@BeachBoy_Gab]2017-11-01 07:23:34925624340346937300en24577459529.256219e+17<USER> LMAOOO I'm so proud <EMOJI>
68718[😢, 💔][][]2017-11-01 07:23:34925624340338507800en1955767531NaNMy cousin/little sister is leaving to San Fran...
68719[🙃][][]2017-11-01 07:23:35925624344524361700en796490344581898200NaNCan't be alone w my thoughts tonight so just g...
68720[😂, 😂, 😂, 😂, 😂][][]2017-11-01 07:23:36925624348710285300en907808317124177900NaN<EMOJI><EMOJI><EMOJI><EMOJI><EMOJI> ambot!!!
68721[👌, 👊, 🙌][][]2017-11-01 07:23:37925624352929910800en262162415NaN<EMOJI>🏽<EMOJI>🏽 1st of the month!!Happy 1st o...
68722[😴][#WednesdayWisdom][]2017-11-01 07:23:41925624369715515400en574882525NaN<HASHTAG> ... stay in bed <EMOJI>
68723[😂, 😂, 😂, 😂][][@Louis_Tomlinson, @NiallOfficial]2017-11-01 07:23:44925624382269124600en5561751739.254038e+17<USER> <USER> THIS IS GOLD. GOLD. <EMOJI><EMOJ...
68724[😀][][]2017-11-01 07:23:45925624386455031800en1610265588NaN<EMOJI> thank you for the kind compliment
68725[😎][][]2017-11-01 07:23:45925624386454937600en4760724450NaNEnjoyed the silence <EMOJI>
68726[✨][][]2017-11-01 07:23:46925624390657572900en882858115636514800NaNOS: Spiderman Homecoming <EMOJI>
68727[🤷][][]2017-11-01 07:23:46925624390682849300en188129628NaNGo to hell <EMOJI>🏽‍♀️
68728[😘][][]2017-11-01 07:23:46925624390666129400en2473135939NaNThank you Yomi! <EMOJI>
68729[😂][][@discopiggu]2017-11-01 07:23:46925624390670106600en23735842099.256241e+17<USER> Lol. Just enjoy the stars. Music Kidhar...
68730[🙏][#NYCStrong][]2017-11-01 07:23:50925624407459971100en181689756NaNThoughts and prayers for NY<EMOJI>🏻 <HASHTAG>
68731[💁][#GreatSuccess][@BrianyH]2017-11-01 07:23:50925624407460057100en601607889.254610e+17<USER> I searched COCK, PENIS, SHLONG, WINKY, ...
68732[🍃, 🌻, 🌻, 🍃, 🍃, 💐, 💐, 🍃, 🙋][][@amitbarman520]2017-11-01 07:23:53925624420022063100en37922907259.256215e+17<USER> Thank you so much<EMOJI><EMOJI><EMOJI><...
\n", + "

68733 rows × 9 columns

\n", + "
" + ], + "text/plain": [ + " EMOJI \\\n", + "0 [🔥, 👏] \n", + "1 [🤦] \n", + "2 [😄] \n", + "3 [📷] \n", + "4 [😩, 😩] \n", + "5 [😭, 💓] \n", + "6 [😂] \n", + "7 [💯] \n", + "8 [🙄] \n", + "9 [😟, 😥, 😢] \n", + "10 [🌻] \n", + "11 [🍁, 🌺, 🍂] \n", + "12 [🍃] \n", + "13 [💭, 🤦] \n", + "14 [😍, 😘] \n", + "15 [😜] \n", + "16 [😂, 🔥] \n", + "17 [💕] \n", + "18 [😉] \n", + "19 [👅] \n", + "20 [👌, 🙂] \n", + "21 [🤗, 📺] \n", + "22 [💯] \n", + "23 [👅, 💦, 🍑] \n", + "24 [💔] \n", + "25 [🤐, 🤐, 🤐] \n", + "26 [😴] \n", + "27 [😂] \n", + "28 [😂, 🙄] \n", + "29 [🎉, 🎂, 🎈, 🎊, 🎁, 💜] \n", + "... ... \n", + "68703 [😕] \n", + "68704 [😂, 😩] \n", + "68705 [😂] \n", + "68706 [💖] \n", + "68707 [🌆, 👉, 🚖, 📞] \n", + "68708 [😁] \n", + "68709 [😋] \n", + "68710 [👌, 🎃, 😘] \n", + "68711 [👍] \n", + "68712 [😭] \n", + "68713 [😂] \n", + "68714 [😭, 😭, 💘] \n", + "68715 [😫, ✋] \n", + "68716 [😂, 🙁] \n", + "68717 [😭] \n", + "68718 [😢, 💔] \n", + "68719 [🙃] \n", + "68720 [😂, 😂, 😂, 😂, 😂] \n", + "68721 [👌, 👊, 🙌] \n", + "68722 [😴] \n", + "68723 [😂, 😂, 😂, 😂] \n", + "68724 [😀] \n", + "68725 [😎] \n", + "68726 [✨] \n", + "68727 [🤷] \n", + "68728 [😘] \n", + "68729 [😂] \n", + "68730 [🙏] \n", + "68731 [💁] \n", + "68732 [🍃, 🌻, 🌻, 🍃, 🍃, 💐, 💐, 🍃, 🙋] \n", + "\n", + " HASHTAGS \\\n", + "0 [] \n", + "1 [] \n", + "2 [] \n", + "3 [] \n", + "4 [] \n", + "5 [] \n", + "6 [] \n", + "7 [] \n", + "8 [] \n", + "9 [] \n", + "10 [] \n", + "11 [] \n", + "12 [#mortdale, #partofthefamily, #gorgeousboy] \n", + "13 [] \n", + "14 [#7YearsOfKMH2] \n", + "15 [] \n", + "16 [] \n", + "17 [] \n", + "18 [] \n", + "19 [#footfetishnation] \n", + "20 [] \n", + "21 [] \n", + "22 [] \n", + "23 [] \n", + "24 [] \n", + "25 [] \n", + "26 [] \n", + "27 [] \n", + "28 [] \n", + "29 [] \n", + "... ... \n", + "68703 [#halloweencostumes] \n", + "68704 [] \n", + "68705 [#MUFC] \n", + "68706 [] \n", + "68707 [#BurkeCentre] \n", + "68708 [] \n", + "68709 [] \n", + "68710 [#portlandoregon, #portlandhalloween, #carrie…] \n", + "68711 [] \n", + "68712 [] \n", + "68713 [] \n", + "68714 [] \n", + "68715 [] \n", + "68716 [] \n", + "68717 [] \n", + "68718 [] \n", + "68719 [] \n", + "68720 [] \n", + "68721 [] \n", + "68722 [#WednesdayWisdom] \n", + "68723 [] \n", + "68724 [] \n", + "68725 [] \n", + "68726 [] \n", + "68727 [] \n", + "68728 [] \n", + "68729 [] \n", + "68730 [#NYCStrong] \n", + "68731 [#GreatSuccess] \n", + "68732 [] \n", + "\n", + " LINKED_USER datetime \\\n", + "0 [] 2017-11-01 13:29:00 \n", + "1 [] 2017-11-01 13:29:00 \n", + "2 [] 2017-11-01 13:29:03 \n", + "3 [] 2017-11-01 13:29:04 \n", + "4 [@hiphopphiIes] 2017-11-01 13:29:06 \n", + "5 [@WizMommma] 2017-11-01 13:29:02 \n", + "6 [] 2017-11-01 13:29:05 \n", + "7 [] 2017-11-01 13:29:07 \n", + "8 [@SeaDimon, @lsarsour] 2017-11-01 13:29:09 \n", + "9 [@Ian_khetye] 2017-11-01 13:29:10 \n", + "10 [] 2017-11-01 13:29:13 \n", + "11 [@Dimafadma] 2017-11-01 13:29:15 \n", + "12 [] 2017-11-01 13:29:16 \n", + "13 [] 2017-11-01 13:29:20 \n", + "14 [] 2017-11-01 13:29:20 \n", + "15 [] 2017-11-01 13:29:22 \n", + "16 [] 2017-11-01 13:29:23 \n", + "17 [@yungbabytate] 2017-11-01 13:29:23 \n", + "18 [@cmckenney] 2017-11-01 13:29:23 \n", + "19 [] 2017-11-01 13:29:25 \n", + "20 [] 2017-11-01 13:29:25 \n", + "21 [] 2017-11-01 13:29:26 \n", + "22 [] 2017-11-01 13:29:26 \n", + "23 [@ctrlpurp] 2017-11-01 13:29:29 \n", + "24 [@saunders_court1] 2017-11-01 13:29:30 \n", + "25 [] 2017-11-01 13:29:31 \n", + "26 [] 2017-11-01 13:29:32 \n", + "27 [@xxxtentacion] 2017-11-01 13:29:35 \n", + "28 [] 2017-11-01 13:29:35 \n", + "29 [@justinerooney_] 2017-11-01 13:29:37 \n", + "... ... ... \n", + "68703 [] 2017-11-01 07:23:04 \n", + "68704 [] 2017-11-01 07:23:05 \n", + "68705 [] 2017-11-01 07:23:06 \n", + "68706 [] 2017-11-01 07:23:07 \n", + "68707 [] 2017-11-01 07:23:18 \n", + "68708 [@mychosliaheart, @BarrettoJulia, @iamjoshuaga... 2017-11-01 07:23:18 \n", + "68709 [] 2017-11-01 07:23:24 \n", + "68710 [] 2017-11-01 07:23:24 \n", + "68711 [@8limbsbondi...] 2017-11-01 07:23:26 \n", + "68712 [] 2017-11-01 07:23:27 \n", + "68713 [@rfrandrea, @AdaaanAndyyy] 2017-11-01 07:23:30 \n", + "68714 [@peachshua1230] 2017-11-01 07:23:31 \n", + "68715 [] 2017-11-01 07:23:34 \n", + "68716 [] 2017-11-01 07:23:34 \n", + "68717 [@BeachBoy_Gab] 2017-11-01 07:23:34 \n", + "68718 [] 2017-11-01 07:23:34 \n", + "68719 [] 2017-11-01 07:23:35 \n", + "68720 [] 2017-11-01 07:23:36 \n", + "68721 [] 2017-11-01 07:23:37 \n", + "68722 [] 2017-11-01 07:23:41 \n", + "68723 [@Louis_Tomlinson, @NiallOfficial] 2017-11-01 07:23:44 \n", + "68724 [] 2017-11-01 07:23:45 \n", + "68725 [] 2017-11-01 07:23:45 \n", + "68726 [] 2017-11-01 07:23:46 \n", + "68727 [] 2017-11-01 07:23:46 \n", + "68728 [] 2017-11-01 07:23:46 \n", + "68729 [@discopiggu] 2017-11-01 07:23:46 \n", + "68730 [] 2017-11-01 07:23:50 \n", + "68731 [@BrianyH] 2017-11-01 07:23:50 \n", + "68732 [@amitbarman520] 2017-11-01 07:23:53 \n", + "\n", + " id lang person reply_to \\\n", + "0 925716304635547600 en 31507978 NaN \n", + "1 925716304664911900 en 231994649 NaN \n", + "2 925716317214089200 en 2592765104 NaN \n", + "3 925716321416949800 en 278737933 NaN \n", + "4 925716329801310200 en 824586253634981900 9.257162e+17 \n", + "5 925716313019965400 en 1581953814 9.257088e+17 \n", + "6 925716325607133200 en 1001999683 NaN \n", + "7 925716334008082400 en 745222369183043600 NaN \n", + "8 925716342401052700 en 798557155217539100 9.257147e+17 \n", + "9 925716346570240000 en 744396039126421500 9.250629e+17 \n", + "10 925716359182520300 en 721490010118205400 8.965900e+17 \n", + "11 925716367558545400 en 520536723 9.257159e+17 \n", + "12 925716371735900200 en 850852815941517300 NaN \n", + "13 925716388513230800 en 914145041588867100 NaN \n", + "14 925716388525645800 en 2425405622 NaN \n", + "15 925716396931240000 en 4614871873 NaN \n", + "16 925716401125331000 en 2831608345 NaN \n", + "17 925716401133948900 en 788571974633009200 9.255778e+17 \n", + "18 925716401125544000 en 218307802 9.257115e+17 \n", + "19 925716409489002500 en 885261166146179100 NaN \n", + "20 925716409497272300 en 831437760833609700 NaN \n", + "21 925716413699854300 en 231664542 NaN \n", + "22 925716413679009800 en 3196847035 NaN \n", + "23 925716426278735900 en 918492858352635900 9.257161e+17 \n", + "24 925716430473039900 en 3471187337 9.257163e+17 \n", + "25 925716434667184100 en 780060488600199200 NaN \n", + "26 925716438853345300 en 388380690 NaN \n", + "27 925716451457163300 en 899320696869974000 NaN \n", + "28 925716451461357600 en 784790670 NaN \n", + "29 925716459828936700 en 3051266655 NaN \n", + "... ... ... ... ... \n", + "68703 925624214522036200 en 1672876458 NaN \n", + "68704 925624218682777600 en 382473866 NaN \n", + "68705 925624222889766900 en 893145405457911800 NaN \n", + "68706 925624227088121900 en 240378516 NaN \n", + "68707 925624273237983200 en 784620573209002000 NaN \n", + "68708 925624273212805100 en 170998187 9.254136e+17 \n", + "68709 925624298395533300 en 1348667816 NaN \n", + "68710 925624298378801200 en 722481645765300200 NaN \n", + "68711 925624306779897900 en 2443251500 NaN \n", + "68712 925624310974136300 en 2406186390 NaN \n", + "68713 925624323557146600 en 1039448149 9.256150e+17 \n", + "68714 925624327755591700 en 845085544589672400 9.256009e+17 \n", + "68715 925624340342812700 en 924752524871131100 NaN \n", + "68716 925624340355280900 en 419493819 NaN \n", + "68717 925624340346937300 en 2457745952 9.256219e+17 \n", + "68718 925624340338507800 en 1955767531 NaN \n", + "68719 925624344524361700 en 796490344581898200 NaN \n", + "68720 925624348710285300 en 907808317124177900 NaN \n", + "68721 925624352929910800 en 262162415 NaN \n", + "68722 925624369715515400 en 574882525 NaN \n", + "68723 925624382269124600 en 556175173 9.254038e+17 \n", + "68724 925624386455031800 en 1610265588 NaN \n", + "68725 925624386454937600 en 4760724450 NaN \n", + "68726 925624390657572900 en 882858115636514800 NaN \n", + "68727 925624390682849300 en 188129628 NaN \n", + "68728 925624390666129400 en 2473135939 NaN \n", + "68729 925624390670106600 en 2373584209 9.256241e+17 \n", + "68730 925624407459971100 en 181689756 NaN \n", + "68731 925624407460057100 en 60160788 9.254610e+17 \n", + "68732 925624420022063100 en 3792290725 9.256215e+17 \n", + "\n", + " text \n", + "0 fashionbombdaily's photo 🏼 \n", + "1 It’s scary how on point my horoscope be \n", + "3 vivalcli: Portraits by Zhao Guojing an... \n", + "4 i wanna know too \n", + "5 veda was yoda too \n", + "6 I’m less stressed about turning 30 now ... \n", + "7 Full charged. \n", + "8 That’s part of the problem, (they) got me emotional there \n", + "11 Happy month to you and your loved ones ... \n", + "12 Maxx and Patricia. Family hangs at For Good He... \n", + "13 I need to STOP beating myself up with my thoug... \n", + "14 Cutest Son Roll no. 31 \n", + "15 By the summer I should have everything up and ... \n", + "16 I know my English is not that good but that do... \n", + "17 I u mama \n", + "18 That picture was NOT taken this morning... \n", + "19 Welcome to \n", + "20 Awkward \n", + "21 back at it with supernatural \n", + "22 One of the best things I've learned was to sto... \n", + "23 Can I taste? \n", + "24 we miss you ☹️ \n", + "25 Actually my bias in WJSN are Eunseo & Bona... \n", + "26 I so cannot be bothered with the rest of the d... \n", + "27 2lit4life \n", + "28 I’m not stop saying that! \n", + "29 HAPPY BIHDAY this one falls under the weird crazy... \n", + "68704 I'm not allowed to have chocolates yet, then I... \n", + "68705 Manchester United manager Mourinho slams 'spec... \n", + "68706 en Bushwhick \n", + "68707 : For Taxi Look, Mammeh and Daddeh! ... \n", + "68709 Life is so good with you \n", + "68710 Happy Halloween! 🏽 \n", + "68713 May pre-month celebration sis Awww Ajsksjdjd im smiling like ... \n", + "68715 I hate when I send a text or snap n I'm so anx... \n", + "68716 The answer is no I have no plans and I never l... \n", + "68717 LMAOOO I'm so proud \n", + "68718 My cousin/little sister is leaving to San Fran... \n", + "68719 Can't be alone w my thoughts tonight so just g... \n", + "68720 ambot!!! \n", + "68721 🏽🏽 1st of the month!!Happy 1st o... \n", + "68722 ... stay in bed \n", + "68723 THIS IS GOLD. GOLD. thank you for the kind compliment \n", + "68725 Enjoyed the silence \n", + "68726 OS: Spiderman Homecoming \n", + "68727 Go to hell 🏽‍♀️ \n", + "68728 Thank you Yomi! \n", + "68729 Lol. Just enjoy the stars. Music Kidhar... \n", + "68730 Thoughts and prayers for NY🏻 \n", + "68731 I searched COCK, PENIS, SHLONG, WINKY, ... \n", + "68732 Thank you so much<... \n", + "\n", + "[68733 rows x 9 columns]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ @@ -110,7 +1196,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -129,7 +1215,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -147,7 +1233,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -155,16 +1241,6 @@ "plain_text = plain_text.str.replace(\"\",\"\").str.replace(\"[\" + \"\".join(list(emoji_blacklist)) + \"]\",\"\")" ] }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": {}, - "outputs": [], - "source": [ - "# making a set of the emoji list:\n", - "\n" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -174,13 +1250,72 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ - "mlb = MultiLabelBinarizer()\n", + "def latest(lst):\n", + " return lst[-1] if len(lst) > 0 else 'X' \n", + "def most_common(lst):\n", + " # trying to find the most common used emoji in the given lst\n", + " return max(set(lst), key=lst.count) if len(lst) > 0 else \"X\" # setting label to 'X' if there is an empty emoji list" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [], + "source": [ + "mlb_multi = MultiLabelBinarizer()\n", + "mlb_single = MultiLabelBinarizer()\n", "\n", - "labels = mlb.fit_transform(emojis)" + "multi_labels = mlb_multi.fit_transform(emojis)\n", + "single_labels = mlb_single.fit_transform(np.array([latest(x) for x in emojis]))\n", + "\n", + "mlb = mlb_single if SINGLE_LABEL else mlb_multi\n", + "labels = single_labels if SINGLE_LABEL else multi_labels" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "* generate weights:" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [], + "source": [ + "# at first count over our table\n", + "emoji_count = {}\n", + "\n", + "\n", + "for e_list in emojis:\n", + " for e in set(e_list):\n", + " if e not in emoji_count:\n", + " emoji_count[e] = 0\n", + " emoji_count[e] += 1\n", + "\n", + "emoji_count\n", + "emoji_sum = sum([emoji_count[e] for e in emoji_count])\n", + "\n", + "emoji_weights = {}\n", + "for e in emoji_count:\n", + " # tfidf for emojis\n", + " emoji_weights[e] = np.log((emoji_sum / emoji_count[e]))\n", + "\n", + "weights_sum= sum([emoji_weights[x] for x in emoji_weights])\n", + " \n", + "# normalize:\n", + "for e in emoji_weights:\n", + " emoji_weights[e] = emoji_weights[e] / weights_sum\n", + "\n", + "emoji_weights['X'] = 0 # dummy values\n", + "emoji_count['X'] = 0" ] }, { @@ -192,7 +1327,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -201,7 +1336,16 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 19, + "metadata": {}, + "outputs": [], + "source": [ + "y1_weights = np.array([(sum([emoji_weights[e] for e in e_list]) / len(e_list)) if len(e_list) > 0 else 0 for e_list in mlb.inverse_transform(y1)])" + ] + }, + { + "cell_type": "code", + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ @@ -219,1055 +1363,159 @@ }, { "cell_type": "code", - "execution_count": 18, - "metadata": {}, - "outputs": [], - "source": [ - "from sklearn.neural_network import MLPClassifier as MLP\n", - "from sklearn.multiclass import OneVsRestClassifier as OVRC\n", - "from sklearn.tree import DecisionTreeClassifier as DTC" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": {}, - "outputs": [], - "source": [ - "def train(max_size = 1000):\n", - " clf = OVRC(DTC())\n", - "\n", - " clf.fit(vec_train[:max_size], y1[:max_size])\n", - " \n", - " return clf" - ] - }, - { - "cell_type": "code", - "execution_count": 20, + "execution_count": 21, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 0 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 1 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 4 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 15 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 16 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 17 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 19 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 22 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 23 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 24 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 25 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 26 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 27 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 28 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 30 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 31 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 32 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 33 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 34 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 35 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 36 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 37 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 38 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 39 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 40 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 41 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 42 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 43 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 44 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 46 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 47 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 48 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 49 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 51 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 53 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 54 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 56 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 57 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 61 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 64 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 66 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 67 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 68 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 69 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 70 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 71 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 72 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 73 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 74 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 75 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 76 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 77 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 80 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 81 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 82 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 83 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 85 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 86 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 87 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 88 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 93 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 98 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 100 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 101 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 102 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 103 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 104 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 105 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 106 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 107 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 108 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 109 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 110 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 112 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 113 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 114 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 116 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 117 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 120 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 121 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 122 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 123 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 125 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 127 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 128 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 130 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 131 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 132 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 133 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 134 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 137 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 138 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 141 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 143 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 144 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 145 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 146 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 148 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 150 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 152 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 153 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 154 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 156 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 158 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 159 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 160 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 161 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 162 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 163 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 164 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 165 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 166 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 167 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 168 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 169 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 170 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 171 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 172 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 173 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 174 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 175 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 176 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 177 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 178 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 179 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 180 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 181 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 183 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 184 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 185 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 187 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 190 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 197 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 198 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 200 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 201 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 203 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 207 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 208 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 209 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 210 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 211 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 212 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 213 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 215 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 216 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 217 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 219 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 220 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 221 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 222 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 223 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 224 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 225 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 228 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 229 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 230 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 231 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 232 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 234 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 235 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 236 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 237 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 238 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 239 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 240 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 241 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 242 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 243 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 244 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 245 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 246 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 247 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 248 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 249 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 250 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 251 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 252 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 253 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 254 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 256 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 257 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 258 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 259 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 260 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 261 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 262 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 263 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 264 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 266 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 267 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 269 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 270 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 271 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 272 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 273 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 274 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 275 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 276 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 277 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 278 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 279 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 281 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 283 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 284 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 285 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 286 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 289 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 291 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 292 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 293 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 294 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 296 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 298 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 299 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 300 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 302 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 303 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 306 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 307 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 309 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 310 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 312 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 313 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 314 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 315 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 317 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 322 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 325 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 328 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 329 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 331 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 332 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 333 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 334 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 335 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 336 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 337 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 338 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 339 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 342 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 345 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 354 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 357 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 360 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 364 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 365 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 368 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 369 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 375 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 381 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 382 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 386 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 402 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 403 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 404 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 405 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 406 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 407 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 408 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 409 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 411 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 412 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 417 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 419 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 420 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 423 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 424 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 425 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 426 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 427 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 428 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 430 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 433 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 435 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 436 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 437 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 440 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 442 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 443 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 444 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 445 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 446 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 447 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 448 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 449 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 450 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 452 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 454 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 455 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 456 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 457 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 463 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 465 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 467 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 468 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 469 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 470 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 474 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 479 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 481 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 484 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 486 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 487 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 488 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 489 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 490 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 492 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 493 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 495 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 496 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 497 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 498 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 499 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 507 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 511 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 512 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 513 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 517 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 518 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 520 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 527 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 528 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 529 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 530 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 531 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 532 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 533 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 534 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 536 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 537 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 538 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 539 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 540 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 544 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 545 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 546 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 550 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 551 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 552 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 553 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 554 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 555 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 556 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 557 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 558 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 561 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 564 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 565 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 566 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 567 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 568 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 569 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 570 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 571 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 573 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 574 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 575 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 577 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 578 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 579 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 581 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 582 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 583 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 586 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 587 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 588 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 590 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 591 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 592 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 593 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 594 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 595 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 596 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 598 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 601 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 602 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 606 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 607 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 608 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 611 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 612 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 613 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 614 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 615 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 616 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 618 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 619 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 620 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 621 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 622 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 623 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 624 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 625 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 626 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 627 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 628 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 629 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 630 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 631 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 633 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 636 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 637 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 639 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 640 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 641 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 644 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 645 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 646 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 648 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 650 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 651 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 652 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 654 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 655 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 658 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 661 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 663 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 664 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 666 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 668 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 669 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 670 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 671 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 672 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 673 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 674 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 675 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 676 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 677 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 678 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 679 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 680 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 681 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 682 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 683 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 684 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 685 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 686 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 687 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 688 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 689 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 690 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 691 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 692 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 693 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 694 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 695 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 696 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 697 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 698 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 700 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 701 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 702 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 703 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 705 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 706 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 709 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 710 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 711 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 714 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 720 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 724 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 726 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 727 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 731 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 733 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 740 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 746 is present in all training examples.\n", - " str(classes[c]))\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 754 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 757 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 759 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 761 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 763 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 767 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 771 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 773 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 777 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 779 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 780 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 782 is present in all training examples.\n", - " str(classes[c]))\n", - "C:\\Users\\Maren\\Anaconda3\\lib\\site-packages\\sklearn\\multiclass.py:76: UserWarning: Label not 784 is present in all training examples.\n", - " str(classes[c]))\n" + "/home/jonas/.local/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\n", + " from ._conv import register_converters as _register_converters\n", + "Using TensorFlow backend.\n" ] } ], "source": [ - "clf = train()" + "from sklearn.neural_network import MLPClassifier as MLP\n", + "from sklearn.multiclass import OneVsRestClassifier as OVRC\n", + "from sklearn.tree import DecisionTreeClassifier as DTC\n", + "\n", + "from keras.models import Sequential\n", + "from keras.layers import Dense" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [], + "source": [ + "def train(max_size = 10000, layers=[(1024, 'relu'),(y1[0].shape[0],'softmax')], random_state=4222, ovrc=False, n_iter=5):\n", + " \n", + " model = Sequential()\n", + " \n", + " # build mlp layers:\n", + " keras_layers = []\n", + " first_layer = True\n", + " for layer in layers:\n", + " if first_layer:\n", + " model.add(Dense(units=layer[0], activation=layer[1], input_dim=vectorizer.transform([\" \"])[0]._shape[1]))\n", + " first_layer = False\n", + " else:\n", + " model.add(Dense(units=layer[0], activation=layer[1]))\n", + " \n", + " #mlp = MLPClassifier(layers=sknn_layers, random_state=random_state, verbose=True, n_iter=n_iter, batch_size=100)\n", + " \n", + " model.compile(loss='categorical_crossentropy',\n", + " optimizer='sgd',\n", + " metrics=['accuracy'])\n", + " \n", + " clf = OVRC(model) if ovrc else model\n", + "\n", + " clf.fit(vec_train[:max_size].A, y1[:max_size], validation_split=0.2, sample_weight=y1_weights[:max_size])\n", + " \n", + " return clf" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Train on 8000 samples, validate on 2000 samples\n", + "Epoch 1/1\n", + "8000/8000 [==============================] - 109s 14ms/step - loss: 0.0042 - acc: 0.0012 - val_loss: 0.0042 - val_acc: 0.0020\n" + ] + } + ], + "source": [ + "clf = train(max_size=10000,layers=[(1200, 'relu'),(1200,'relu'),(y1[0].shape[0],'softmax')])" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "62691 I just finished mine I was extremely ne...\n", + "9959 Kinda Gross but yup it's ...\n", + "39726 Treating myself to a manicure because even une...\n", + "20883 Sarfraz Done it.Congrats.Pakistan Rules the Wo...\n", + "2705 I turn 20 in Just over a month and I’ve never ...\n", + "20766 The coolest & beautiful duo ever ❤❤\n", + "13242 Studying abroad in Italy for 3 weeks i...\n", + "32951 You're nice to meeeeee thanks I appreciate that \n", + "7297 hahahha it kinda does look like me \n", + "10913 Ya Rasulullah.,You are the Messenger...\n", + "58664 crying\n", + "28113 Man my Dad crazy but I miss his Bok Choi soup ...\n", + "20698 Well done!!\n", + "45787 Mi mess\n", + "36076 schooling all the \n", + "66970 Awww but I’m sure your man can \n", + "34787 TWEET using the hashtag... is the rel...\n", + "9746 Nation is lost y NS boosting tat he will appea...\n", + "64458 Video dinner medic \n", + "63868 He wouldn't expect anything less \n", + "7878 Looking for an ASAP?🕰️Check out our ...\n", + "42253 Cuddled up in a hoodie and fuzzy socks. \n", + "32650 Too true the Buble album is out and...\n", + "58945 Woke up late again \n", + "60382 Damn g well mfs glad you out take adva...\n", + "37224 + SATURDAY OFFICIAL CAU VS MOREHOUSE ...\n", + "19488 My back is sore\n", + "36042 Actually, it should be October 31st🕸 vs. Novem...\n", + " ... \n", + "4414 Absolutely mate \n", + "21768 Running late to pick up the kids, and this tra...\n", + "5359 Lmao well if you say so \n", + "22550 Hardcore \n", + "55252 Click here to watch it: Kane hot office sex i...\n", + "42040 And brother ‍️ thanks\n", + "19063 yes Haley \n", + "477 Our differences are the real treasur...\n", + "41045 I just took a two hour nap instead of d...\n", + "52270 Some guy full on grabbed my ass last night whe...\n", + "52102 Can't ever do anything for myself. \n", + "29210 OMFG SHES SO BEAUTIFUL \n", + "2131 Check out what I'm selling on my shop \n", + "2912 My shordy b boostin \n", + "64797 I pray my nieces NEVER feel this type of hurt ...\n", + "63632 I should definitely go to sleep and rea...\n", + "30426 Texas asf \n", + "68567 annyeong! if you have time kindly check...\n", + "61825 He melts me! I want him to stay this small for...\n", + "8057 Sorry Not Sorry By is Track 13 on I liked it too \n", + "18808 A mansion gap, maybe \n", + "64643 Happy halloween \n", + "34804 Where is a Civil Rights Lawyer ready to help t...\n", + "62123 I keep having dreams that my family come and v...\n", + "18325 # May this day bring countless happines...\n", + "66916 Happy Halloween \n", + "63618 This is what happens when I finish a painting \n", + "Name: text, Length: 61859, dtype: object" + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "X1" ] }, { @@ -1279,19 +1527,90 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 27, "metadata": {}, "outputs": [], "source": [ - "pred = clf.predict(vectorizer.transform(Xt1))\n", - "\n", - "# build a dataframe to visualize test results:\n", - "testlist = pd.DataFrame({'text': Xt1, 'teacher': mlb.inverse_transform(yt1), 'predict': mlb.inverse_transform(pred)})" + "pred = clf.predict(vectorizer.transform(Xt1))" ] }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 28, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[0.00124256, 0.00124216, 0.00123592, ..., 0.00123677, 0.00123611,\n", + " 0.00123534],\n", + " [0.00124442, 0.00123547, 0.00123502, ..., 0.00123892, 0.00123958,\n", + " 0.00123556],\n", + " [0.00124413, 0.00123538, 0.00124574, ..., 0.00123829, 0.00123556,\n", + " 0.00123374],\n", + " ...,\n", + " [0.00123915, 0.00123915, 0.00123916, ..., 0.00123915, 0.00123916,\n", + " 0.00123915],\n", + " [0.00124084, 0.00124438, 0.00123832, ..., 0.00123602, 0.00125055,\n", + " 0.00123963],\n", + " [0.00124321, 0.0012361 , 0.00123488, ..., 0.00123589, 0.00124259,\n", + " 0.00123691]], dtype=float32)" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pred" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": {}, + "outputs": [], + "source": [ + "binary_pred = np.zeros_like(pred)\n", + "binary_pred[np.arange(len(pred)), pred.argmax(1)] = 1 " + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[0., 0., 0., ..., 0., 0., 0.],\n", + " [0., 0., 0., ..., 0., 0., 0.],\n", + " [0., 0., 0., ..., 0., 0., 0.]], dtype=float32)" + ] + }, + "execution_count": 30, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "binary_pred[[0,1,2]]" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": {}, + "outputs": [], + "source": [ + "# build a dataframe to visualize test results:\n", + "testlist = pd.DataFrame({'text': Xt1, 'teacher': (mlb_single if SINGLE_LABEL else mlb).inverse_transform(yt1), 'predict': (mlb_single if SINGLE_LABEL else mlb).inverse_transform(binary_pred)})" + ] + }, + { + "cell_type": "code", + "execution_count": 32, "metadata": {}, "outputs": [ { @@ -1322,184 +1641,184 @@ " \n", " \n", " \n", - " 57624\n", - " ()\n", - " (😡, 💥)\n", - " @RealRoseTaylor1: IMO A terrorist doesn’t h...\n", + " 15278\n", + " (🌠,)\n", + " (😅,)\n", + " <USER> <USER> 2 years? ✌\n", " \n", " \n", - " 58180\n", - " ()\n", - " (😒,)\n", - " @mog7546: NOT BREAKING NEWS - #KELLY's STUPID...\n", + " 36882\n", + " (🕔,)\n", + " (😂,)\n", + " tell me why this is me everyday\n", " \n", " \n", - " 122719\n", - " ()\n", - " (🤦, 😂)\n", - " @SpecialMonroe: I’m more of like a “ yes ...\n", + " 65543\n", + " (🌍,)\n", + " (📌,)\n", + " please follow us ::Twitter ▶️ ▶️ ▶️MARSHMALL...\n", " \n", " \n", - " 132425\n", - " ()\n", - " (🤷,)\n", - " @xo_sweetttnesss Basically ðŸ�½â€�♀ï¸�\n", + " 65893\n", + " (😂,)\n", + " (🔝,)\n", + " This\n", " \n", " \n", - " 95629\n", - " (😂,)\n", - " (😂,)\n", - " @JVino_: Never should of gave niggas technolo...\n", + " 55496\n", + " (🎳,)\n", + " (😍,)\n", + " <USER> Im in love\n", " \n", " \n", - " 144805\n", - " (😂,)\n", - " (🤷,)\n", - " @_Erickaaaaaaa: People mad iffy I’m not aro...\n", + " 61997\n", + " (🌍,)\n", + " (🌸,)\n", + " <USER> Miss you gemmthankyou sooo much❤❤\n", " \n", " \n", - " 50997\n", - " (💕, 🛫)\n", - " (💕, 🛫)\n", - " @MURASAKI_9394: &lt;preview&gt; 171101 ICN@mt...\n", + " 15819\n", + " (🔹,)\n", + " (😂,)\n", + " Me as a parent\n", " \n", " \n", - " 52294\n", - " (👻,)\n", - " (😣, ðŸ˜�)\n", - " @JaDinePhils: Rogue x Gambit x Deadpool No cu...\n", + " 21340\n", + " (🌑,)\n", + " (😂,)\n", + " Really betting my manager rn for tonight’s game\n", " \n", " \n", - " 57600\n", - " (🙌,)\n", - " (💙,)\n", - " @CailenHanzlik: So hyped watching my former t...\n", + " 26691\n", + " (🎳,)\n", + " (😩,)\n", + " Y ES IM A BAD BOY SO I LIKE BAD GIRL\n", " \n", " \n", - " 12709\n", - " ()\n", - " (💀,)\n", - " @C_eazyy @RuthlessLuke_ LMAO DED let a nigga s...\n", + " 57025\n", + " (🌷,)\n", + " (😃,)\n", + " <USER> Just downloaded to my fire stick over ...\n", " \n", " \n", - " 159921\n", - " ()\n", - " (👎,)\n", - " @ShawnHayes_Real @Mr_Ghostly @CR_Shelton @Rojo...\n", + " 17967\n", + " (🐔,)\n", + " (😍,)\n", + " <USER> Love this ! Hollywood is the man\n", " \n", " \n", - " 1297\n", - " ()\n", - " (😂, 💀)\n", - " @Ieansquad: he really solved the equation I c...\n", + " 68555\n", + " (🌑,)\n", + " (😉,)\n", + " <USER> Absolutely but if it had been a banana ...\n", " \n", " \n", - " 124445\n", - " (âš¾, 🙋)\n", - " (😩,)\n", - " It is really breaking my heart. Imma stick by ...\n", + " 20784\n", + " (💁,)\n", + " (🐻,)\n", + " La Grasaaaaaaaaa Reverse Shatter Back Board S...\n", " \n", " \n", - " 150159\n", - " ()\n", - " (ðŸ�°,)\n", - " @jikookarchive: : aw sexy~: (jimin your cleav...\n", + " 68300\n", + " (🥣,)\n", + " (😍,)\n", + " I go to New York next month ahhhhhh\n", " \n", " \n", - " 170959\n", - " (✅, 😭, ðŸ�Œ)\n", - " (✅, 🔥, ðŸ�‹)\n", - " @Harrys1DEmpire: 1: Like this2: Follow all th...\n", + " 4659\n", + " (💍,)\n", + " (😭,)\n", + " <USER> I’m trying to enjoy it as much as the f...\n", " \n", " \n", - " 46992\n", - " ()\n", - " (🎬, 💋, 🔗)\n", - " @ONGSEONGWU_TH: [] #WANNAONE X Innisfree | On...\n", + " 66706\n", + " (🌕,)\n", + " (📞,)\n", + " : Salamander Resort <HASHTAG> 🍽️ For Taxi 70...\n", " \n", " \n", - " 130772\n", - " ()\n", - " (ðŸ�º,)\n", - " @lbtreiman: Well i certainly didn't get 'em a...\n", + " 47510\n", + " (🎄,)\n", + " (👉,)\n", + " For your actions there WILL be consequences. Y...\n", " \n", " \n", - " 63733\n", - " ()\n", - " (🎃,)\n", - " @gamngbizzle: Follow everyone who retweets t...\n", + " 55294\n", + " (😾,)\n", + " (😂,)\n", + " <USER> Omg my cousin charging 40\n", " \n", " \n", - " 22026\n", - " ()\n", - " (💕, 📷)\n", - " @fshion_me: Love itã€�@perlinek】Coupon code...\n", + " 621\n", + " (🌍,)\n", + " (🤦,)\n", + " Zoey daycare lets her do whatever she want, I ...\n", " \n", " \n", - " 109588\n", - " ()\n", - " (ðŸ˜�,)\n", - " @SoCuteBabies: Those eyes\n", + " 31011\n", + " (😌,)\n", + " (😀,)\n", + " yeah! ✌️\n", " \n", " \n", - " 167358\n", - " (💕,)\n", - " (😈, 👻)\n", - " @Lepetit626: Happy Halloween from the cutest ...\n", + " 30659\n", + " (🐎,)\n", + " (💪,)\n", + " This was so much I mean SO MUCH over due for t...\n", " \n", " \n", - " 132276\n", - " ()\n", - " (💀,)\n", - " @marceoooo shuttup\n", + " 66284\n", + " (🤔,)\n", + " (🙂,)\n", + " Parent contact booking is now open! Please fol...\n", " \n", " \n", - " 150897\n", - " ()\n", - " (😈, 🔥)\n", - " @instaWANKtube: Drilling babe@mistersex17 @hq...\n", + " 66758\n", + " (🎄,)\n", + " (😥,)\n", + " <USER> OCONUS we don’t have the Turkey Day buf...\n", " \n", " \n", - " 15211\n", - " ()\n", - " (🎃,)\n", - " @G_Eazy: Hopped out of the millennium falcon ...\n", + " 13456\n", + " (🌠,)\n", + " (💕,)\n", + " Dems realtor business partners have lots of ni...\n", " \n", " \n", - " 58157\n", - " (⌛, 💊)\n", - " (⌛, 💊)\n", - " @NBCNewsNight: Stranger Things Neuro Upside D...\n", + " 15057\n", + " (🥣,)\n", + " (😂,)\n", + " Ready for the dodgers fans excuses\n", " \n", " \n", - " 87036\n", - " ()\n", - " (😂,)\n", - " I ran a lot harder back then, as well.I join v...\n", + " 188\n", + " (🎄,)\n", + " (🎉,)\n", + " <USER> Happy Birthday Angge\n", " \n", " \n", - " 68909\n", - " (💎,)\n", - " (🚗,)\n", - " @Holy_Boost: SUMMER BOOST case GA! -Like+ ...\n", + " 5054\n", + " (🎄,)\n", + " (😂,)\n", + " <USER> <USER> Lawsuit\n", " \n", " \n", - " 70063\n", - " ()\n", - " (😭,)\n", - " I love you so much meliflua â�¤ï¸�\n", + " 18099\n", + " (👃,)\n", + " (😤,)\n", + " Finna roll this up no excuses\n", " \n", " \n", - " 53508\n", - " ()\n", - " (💥,)\n", - " @SMMmarkeing786: Get FREE CBD OIL Trial Bott...\n", + " 17120\n", + " (🌍,)\n", + " (⚡,)\n", + " But it’s forever fuck em and keep it gutta ️\n", " \n", " \n", - " 91590\n", - " (👀,)\n", - " (👀,)\n", - " @dezidoesit: Shea Moisture did not come to pl...\n", + " 14552\n", + " (📖,)\n", + " (😍,)\n", + " I just need to hubby a hockey player up\n", " \n", " \n", " ...\n", @@ -1508,339 +1827,268 @@ " ...\n", " \n", " \n", - " 82637\n", - " (🎃,)\n", - " ()\n", - " @KissaSins: Follow me on Instagram!!\n", + " 21819\n", + " (🎄,)\n", + " (😂,)\n", + " Niggas funny af\n", " \n", " \n", - " 151805\n", - " (👀,)\n", - " (👀,)\n", - " @dezidoesit: Shea Moisture did not come to pl...\n", + " 18460\n", + " (♿,)\n", + " (💁,)\n", + " 1. Don’t EVER disrespect Thanksgiving cuz yo f...\n", " \n", " \n", - " 25914\n", - " ()\n", - " (🔘,)\n", - " @Heartless600904: He knows how badly he hurt ...\n", + " 60291\n", + " (🚮,)\n", + " (💘,)\n", + " happy bday lexi <USER>\n", " \n", " \n", - " 91602\n", - " ()\n", - " (😡,)\n", - " @1776Stonewall @Frederick99m That's when I kne...\n", + " 22623\n", + " (🔖,)\n", + " (😩,)\n", + " Mr.Lazaro said “there’s my girls” when he seen...\n", " \n", " \n", - " 16911\n", - " (😭, ðŸ˜�)\n", - " (😩,)\n", - " Not even out of bed yet and I’m ready to get...\n", + " 87\n", + " (🌍,)\n", + " (🎈,)\n", + " Happy Birthday Blake!!!! I hope you have an am...\n", " \n", " \n", - " 94798\n", - " (🙄,)\n", - " (🙃,)\n", - " nobody gets how lonely and hungry i get\n", + " 2884\n", + " (🏄,)\n", + " (😉,)\n", + " <USER> This would be a good time to do a Week ...\n", " \n", " \n", - " 112317\n", - " ()\n", - " (🤗,)\n", - " @BIGAC_: new month, new money, new opportunit...\n", + " 30212\n", + " (🧘,)\n", + " (📌,)\n", + " <USER> Done, pls ❤️ y FAV\n", " \n", " \n", - " 72241\n", - " ()\n", - " (😎,)\n", - " @ZeeTamil: Happy birthday @iamsrk #ZeeTamil #...\n", + " 55813\n", + " (😾,)\n", + " (😍,)\n", + " There is just something about <USER> <HASHTAG>\n", " \n", " \n", - " 160551\n", - " ()\n", - " (😭,)\n", - " @WORLDSTARNOW: Drake looks like he entering h...\n", + " 11657\n", + " (💚,)\n", + " (😴,)\n", + " <USER> you're brudda!\n", " \n", " \n", - " 151889\n", - " (💖,)\n", - " (ðŸ˜�,)\n", - " @GenderReveaIs: The moment of truth, hoop sty...\n", + " 18215\n", + " (🐹,)\n", + " (🤷,)\n", + " Not being depressed ‍️\n", " \n", " \n", - " 64998\n", - " (🎃,)\n", - " (💓, ðŸ�¶)\n", - " @LA_Loving: Baby’s first Halloween\n", + " 48609\n", + " (🧘,)\n", + " (🤑,)\n", + " <USER> I ❤ you. My woman crush everyday as alw...\n", " \n", " \n", - " 138015\n", - " (👀,)\n", - " (😂,)\n", - " @MikeChosen1: When you got a girl who doesn't...\n", + " 16079\n", + " (🥣,)\n", + " (⚓,)\n", + " I added a video to a <USER> playlist 🛳 ️ The ...\n", " \n", " \n", - " 84447\n", - " (🌹,)\n", - " (💕,)\n", - " @LiamPayne @pinkskiesljp @BestSimy @LiamPayne ...\n", + " 28380\n", + " (🥣,)\n", + " (😂,)\n", + " Dodgers\n", " \n", " \n", - " 125899\n", - " (â­�, ðŸ‘�, 💙, ðŸ™�)\n", - " (ðŸ™�,)\n", - " @Oh_Ashlaay We just have to pray to the baseba...\n", + " 41212\n", + " (🌍,)\n", + " (🔴,)\n", + " [LIVE] on <USER>\n", " \n", " \n", - " 47898\n", - " (😂,)\n", - " (😂,)\n", - " @JVino_: Never should of gave niggas technolo...\n", + " 67555\n", + " (🔗,)\n", + " (💞,)\n", + " • <USER> my precious Niya always checking up o...\n", " \n", " \n", - " 7597\n", - " ()\n", - " (😂,)\n", - " @junkiejunkrat We’re doing goooooood. But fu...\n", + " 45490\n", + " (🕔,)\n", + " (🤷,)\n", + " If you wanna make things right it go both ways ‍️\n", " \n", " \n", - " 173305\n", - " ()\n", - " (🌈, 💛)\n", - " Ohh nice.\n", + " 54052\n", + " (🌍,)\n", + " (😢,)\n", + " Poor baby!!!\n", " \n", " \n", - " 133827\n", - " ()\n", - " (💙,)\n", - " @JenBluesnake: This is lovely. Unsworth's app...\n", + " 54517\n", + " (🐹,)\n", + " (😚,)\n", + " <USER> happy birthday, hope you have a good day\n", " \n", " \n", - " 157487\n", - " ()\n", - " (💻,)\n", - " @yesyours: : Vehicle Magnet #VehicleMagnet ð...\n", + " 24047\n", + " (🌷,)\n", + " (😌,)\n", + " Don’t get mad when them haters stare let em lo...\n", " \n", " \n", - " 142977\n", - " ()\n", - " (🌸, 💓)\n", - " @namkook_daily: they are so cosy and soft â˜�\n", + " 253\n", + " (🥄,)\n", + " (😎,)\n", + " Sag season right around the corner. 25 on the ...\n", " \n", " \n", - " 47506\n", - " ()\n", - " (💙, 🔥)\n", - " @Juli_SJ13: ••••••2017 SAVED •â...\n", + " 64707\n", + " (🎸,)\n", + " (😇,)\n", + " <USER> Let’s see his costume\n", " \n", " \n", - " 164518\n", - " ()\n", - " (😜,)\n", - " @marcogumabao: I hope you like your eggs SUNN...\n", + " 34279\n", + " (🌯,)\n", + " (😥,)\n", + " <USER> I AM NERVOUS!!\n", " \n", " \n", - " 96549\n", - " (🎃,)\n", - " (💓, ðŸ�¶)\n", - " @LA_Loving: Baby’s first Halloween\n", + " 58342\n", + " (🤝,)\n", + " (🙌,)\n", + " <USER> This looks amazing\n", " \n", " \n", - " 69134\n", - " ()\n", - " (😡, 😞)\n", - " Reading this @AshcroftBen with many mixed emot...\n", + " 16361\n", + " (🎄,)\n", + " (🙌,)\n", + " <USER> <USER> <USER> <USER> <USER> <USER> Shit...\n", " \n", " \n", - " 116753\n", - " ()\n", - " (ðŸ�‹,)\n", - " @Caradelevingne: â�¤ï¸� NO_ONE EVER REALLY DI...\n", + " 39069\n", + " (😂,)\n", + " (👇,)\n", + " THIS\n", " \n", " \n", - " 125133\n", - " ()\n", - " (😉, 🖤)\n", - " @DannyTu3250187: @Kriszti7504 @filipina_krueg...\n", + " 59739\n", + " (🌷,)\n", + " (🐆,)\n", + " I've never consumed a reindeer.\n", " \n", " \n", - " 5081\n", - " (💖,)\n", - " (😘,)\n", - " @brysoxox: rt or gay\n", + " 49140\n", + " (🌕,)\n", + " (🤝,)\n", + " Sales is the heart of business.\n", " \n", " \n", - " 62088\n", - " ()\n", - " (💔,)\n", - " Why do say that hondas are for fboys??\n", + " 47901\n", + " (😂,)\n", + " (😭,)\n", + " bruuuuhhh\n", " \n", " \n", - " 32769\n", - " (💛,)\n", - " (ðŸ˜�,)\n", - " @menggalurks: Live na ba ang EB today? #ALDU...\n", + " 4241\n", + " (💲,)\n", + " (🎓,)\n", + " <USER> Congratulations ! you’ve graduated with...\n", " \n", " \n", - " 92385\n", - " ()\n", - " (💔,)\n", - " OML, WHAT HAPPENED?!!\n", + " 24123\n", + " (➗,)\n", + " (👍,)\n", + " <USER> Your A Rock Star! How You Put Up With ...\n", " \n", " \n", "\n", - "

17634 rows × 3 columns

\n", + "

6874 rows × 3 columns

\n", "" ], "text/plain": [ - " predict teacher \\\n", - "57624 () (😡, 💥) \n", - "58180 () (😒,) \n", - "122719 () (🤦, 😂) \n", - "132425 () (🤷,) \n", - "95629 (😂,) (😂,) \n", - "144805 (😂,) (🤷,) \n", - "50997 (💕, 🛫) (💕, 🛫) \n", - "52294 (👻,) (😣, ðŸ˜�) \n", - "57600 (🙌,) (💙,) \n", - "12709 () (💀,) \n", - "159921 () (👎,) \n", - "1297 () (😂, 💀) \n", - "124445 (âš¾, 🙋) (😩,) \n", - "150159 () (ðŸ�°,) \n", - "170959 (✅, 😭, ðŸ�Œ) (✅, 🔥, ðŸ�‹) \n", - "46992 () (🎬, 💋, 🔗) \n", - "130772 () (ðŸ�º,) \n", - "63733 () (🎃,) \n", - "22026 () (💕, 📷) \n", - "109588 () (ðŸ˜�,) \n", - "167358 (💕,) (😈, 👻) \n", - "132276 () (💀,) \n", - "150897 () (😈, 🔥) \n", - "15211 () (🎃,) \n", - "58157 (⌛, 💊) (⌛, 💊) \n", - "87036 () (😂,) \n", - "68909 (💎,) (🚗,) \n", - "70063 () (😭,) \n", - "53508 () (💥,) \n", - "91590 (👀,) (👀,) \n", - "... ... ... \n", - "82637 (🎃,) () \n", - "151805 (👀,) (👀,) \n", - "25914 () (🔘,) \n", - "91602 () (😡,) \n", - "16911 (😭, ðŸ˜�) (😩,) \n", - "94798 (🙄,) (🙃,) \n", - "112317 () (🤗,) \n", - "72241 () (😎,) \n", - "160551 () (😭,) \n", - "151889 (💖,) (ðŸ˜�,) \n", - "64998 (🎃,) (💓, ðŸ�¶) \n", - "138015 (👀,) (😂,) \n", - "84447 (🌹,) (💕,) \n", - "125899 (â­�, ðŸ‘�, 💙, ðŸ™�) (ðŸ™�,) \n", - "47898 (😂,) (😂,) \n", - "7597 () (😂,) \n", - "173305 () (🌈, 💛) \n", - "133827 () (💙,) \n", - "157487 () (💻,) \n", - "142977 () (🌸, 💓) \n", - "47506 () (💙, 🔥) \n", - "164518 () (😜,) \n", - "96549 (🎃,) (💓, ðŸ�¶) \n", - "69134 () (😡, 😞) \n", - "116753 () (ðŸ�‹,) \n", - "125133 () (😉, 🖤) \n", - "5081 (💖,) (😘,) \n", - "62088 () (💔,) \n", - "32769 (💛,) (ðŸ˜�,) \n", - "92385 () (💔,) \n", + " predict teacher text\n", + "15278 (🌠,) (😅,) 2 years? ✌\n", + "36882 (🕔,) (😂,) tell me why this is me everyday \n", + "65543 (🌍,) (📌,) please follow us ::Twitter ▶️ ▶️ ▶️MARSHMALL...\n", + "65893 (😂,) (🔝,) This \n", + "55496 (🎳,) (😍,) Im in love \n", + "61997 (🌍,) (🌸,) Miss you gemmthankyou sooo much❤❤\n", + "15819 (🔹,) (😂,) Me as a parent \n", + "21340 (🌑,) (😂,) Really betting my manager rn for tonight’s game \n", + "26691 (🎳,) (😩,) Y ES IM A BAD BOY SO I LIKE BAD GIRL \n", + "57025 (🌷,) (😃,) Just downloaded to my fire stick over ...\n", + "17967 (🐔,) (😍,) Love this ! Hollywood is the man \n", + "68555 (🌑,) (😉,) Absolutely but if it had been a banana ...\n", + "20784 (💁,) (🐻,) La Grasaaaaaaaaa Reverse Shatter Back Board S...\n", + "68300 (🥣,) (😍,) I go to New York next month ahhhhhh \n", + "4659 (💍,) (😭,) I’m trying to enjoy it as much as the f...\n", + "66706 (🌕,) (📞,) : Salamander Resort 🍽️ For Taxi 70...\n", + "47510 (🎄,) (👉,) For your actions there WILL be consequences. Y...\n", + "55294 (😾,) (😂,) Omg my cousin charging 40 \n", + "621 (🌍,) (🤦,) Zoey daycare lets her do whatever she want, I ...\n", + "31011 (😌,) (😀,) yeah! ✌️ \n", + "30659 (🐎,) (💪,) This was so much I mean SO MUCH over due for t...\n", + "66284 (🤔,) (🙂,) Parent contact booking is now open! Please fol...\n", + "66758 (🎄,) (😥,) OCONUS we don’t have the Turkey Day buf...\n", + "13456 (🌠,) (💕,) Dems realtor business partners have lots of ni...\n", + "15057 (🥣,) (😂,) Ready for the dodgers fans excuses \n", + "188 (🎄,) (🎉,) Happy Birthday Angge \n", + "5054 (🎄,) (😂,) Lawsuit \n", + "18099 (👃,) (😤,) Finna roll this up no excuses \n", + "17120 (🌍,) (⚡,) But it’s forever fuck em and keep it gutta ️\n", + "14552 (📖,) (😍,) I just need to hubby a hockey player up \n", + "... ... ... ...\n", + "21819 (🎄,) (😂,) Niggas funny af \n", + "18460 (♿,) (💁,) 1. Don’t EVER disrespect Thanksgiving cuz yo f...\n", + "60291 (🚮,) (💘,) happy bday lexi \n", + "22623 (🔖,) (😩,) Mr.Lazaro said “there’s my girls” when he seen...\n", + "87 (🌍,) (🎈,) Happy Birthday Blake!!!! I hope you have an am...\n", + "2884 (🏄,) (😉,) This would be a good time to do a Week ...\n", + "30212 (🧘,) (📌,) Done, pls ❤️ y FAV\n", + "55813 (😾,) (😍,) There is just something about \n", + "11657 (💚,) (😴,) you're brudda!\n", + "18215 (🐹,) (🤷,) Not being depressed ‍️ \n", + "48609 (🧘,) (🤑,) I ❤ you. My woman crush everyday as alw...\n", + "16079 (🥣,) (⚓,) I added a video to a playlist 🛳 ️ The ...\n", + "28380 (🥣,) (😂,) Dodgers \n", + "41212 (🌍,) (🔴,) [LIVE] on \n", + "67555 (🔗,) (💞,) • my precious Niya always checking up o...\n", + "45490 (🕔,) (🤷,) If you wanna make things right it go both ways ‍️\n", + "54052 (🌍,) (😢,) Poor baby!!! \n", + "54517 (🐹,) (😚,) happy birthday, hope you have a good day\n", + "24047 (🌷,) (😌,) Don’t get mad when them haters stare let em lo...\n", + "253 (🥄,) (😎,) Sag season right around the corner. 25 on the ...\n", + "64707 (🎸,) (😇,) Let’s see his costume \n", + "34279 (🌯,) (😥,) I AM NERVOUS!!\n", + "58342 (🤝,) (🙌,) This looks amazing \n", + "16361 (🎄,) (🙌,) Shit...\n", + "39069 (😂,) (👇,) THIS \n", + "59739 (🌷,) (🐆,) I've never consumed a reindeer. \n", + "49140 (🌕,) (🤝,) Sales is the heart of business. \n", + "47901 (😂,) (😭,) bruuuuhhh \n", + "4241 (💲,) (🎓,) Congratulations ! you’ve graduated with...\n", + "24123 (➗,) (👍,) Your A Rock Star! How You Put Up With ...\n", "\n", - " text \n", - "57624 @RealRoseTaylor1: IMO A terrorist doesn’t h... \n", - "58180 @mog7546: NOT BREAKING NEWS - #KELLY's STUPID... \n", - "122719 @SpecialMonroe: I’m more of like a “ yes ... \n", - "132425 @xo_sweetttnesss Basically ðŸ�½â€�♀ï¸� \n", - "95629 @JVino_: Never should of gave niggas technolo... \n", - "144805 @_Erickaaaaaaa: People mad iffy I’m not aro... \n", - "50997 @MURASAKI_9394: <preview> 171101 ICN@mt... \n", - "52294 @JaDinePhils: Rogue x Gambit x Deadpool No cu... \n", - "57600 @CailenHanzlik: So hyped watching my former t... \n", - "12709 @C_eazyy @RuthlessLuke_ LMAO DED let a nigga s... \n", - "159921 @ShawnHayes_Real @Mr_Ghostly @CR_Shelton @Rojo... \n", - "1297 @Ieansquad: he really solved the equation I c... \n", - "124445 It is really breaking my heart. Imma stick by ... \n", - "150159 @jikookarchive: : aw sexy~: (jimin your cleav... \n", - "170959 @Harrys1DEmpire: 1: Like this2: Follow all th... \n", - "46992 @ONGSEONGWU_TH: [] #WANNAONE X Innisfree | On... \n", - "130772 @lbtreiman: Well i certainly didn't get 'em a... \n", - "63733 @gamngbizzle: Follow everyone who retweets t... \n", - "22026 @fshion_me: Love itã€�@perlinek】Coupon code... \n", - "109588 @SoCuteBabies: Those eyes \n", - "167358 @Lepetit626: Happy Halloween from the cutest ... \n", - "132276 @marceoooo shuttup \n", - "150897 @instaWANKtube: Drilling babe@mistersex17 @hq... \n", - "15211 @G_Eazy: Hopped out of the millennium falcon ... \n", - "58157 @NBCNewsNight: Stranger Things Neuro Upside D... \n", - "87036 I ran a lot harder back then, as well.I join v... \n", - "68909 @Holy_Boost: SUMMER BOOST case GA! -Like+ ... \n", - "70063 I love you so much meliflua â�¤ï¸� \n", - "53508 @SMMmarkeing786: Get FREE CBD OIL Trial Bott... \n", - "91590 @dezidoesit: Shea Moisture did not come to pl... \n", - "... ... \n", - "82637 @KissaSins: Follow me on Instagram!! \n", - "151805 @dezidoesit: Shea Moisture did not come to pl... \n", - "25914 @Heartless600904: He knows how badly he hurt ... \n", - "91602 @1776Stonewall @Frederick99m That's when I kne... \n", - "16911 Not even out of bed yet and I’m ready to get... \n", - "94798 nobody gets how lonely and hungry i get \n", - "112317 @BIGAC_: new month, new money, new opportunit... \n", - "72241 @ZeeTamil: Happy birthday @iamsrk #ZeeTamil #... \n", - "160551 @WORLDSTARNOW: Drake looks like he entering h... \n", - "151889 @GenderReveaIs: The moment of truth, hoop sty... \n", - "64998 @LA_Loving: Baby’s first Halloween \n", - "138015 @MikeChosen1: When you got a girl who doesn't... \n", - "84447 @LiamPayne @pinkskiesljp @BestSimy @LiamPayne ... \n", - "125899 @Oh_Ashlaay We just have to pray to the baseba... \n", - "47898 @JVino_: Never should of gave niggas technolo... \n", - "7597 @junkiejunkrat We’re doing goooooood. But fu... \n", - "173305 Ohh nice. \n", - "133827 @JenBluesnake: This is lovely. Unsworth's app... \n", - "157487 @yesyours: : Vehicle Magnet #VehicleMagnet ð... \n", - "142977 @namkook_daily: they are so cosy and soft â˜� \n", - "47506 @Juli_SJ13: ••••••2017 SAVED •â... \n", - "164518 @marcogumabao: I hope you like your eggs SUNN... \n", - "96549 @LA_Loving: Baby’s first Halloween \n", - "69134 Reading this @AshcroftBen with many mixed emot... \n", - "116753 @Caradelevingne: â�¤ï¸� NO_ONE EVER REALLY DI... \n", - "125133 @DannyTu3250187: @Kriszti7504 @filipina_krueg... \n", - "5081 @brysoxox: rt or gay \n", - "62088 Why do say that hondas are for fboys?? \n", - "32769 @menggalurks: Live na ba ang EB today? #ALDU... \n", - "92385 OML, WHAT HAPPENED?!! \n", - "\n", - "[17634 rows x 3 columns]" + "[6874 rows x 3 columns]" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "()\n" - ] } ], "source": [ - "display(testlist)\n", - "print(testlist[\"predict\"][57624])" + "display(testlist)\n" ] }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 33, "metadata": {}, "outputs": [], "source": [ @@ -1856,13 +2104,13 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "1e6d156f9beb42ada3790d977beb2b7c", + "model_id": "ba20ba113dff4af0b14ea6a6e666e521", "version_major": 2, "version_minor": 0 }, @@ -1891,7 +2139,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "b76a73c0fa7946f28fe91e18240484a4", + "model_id": "f3af634eb2e64822921b57848e032dcf", "version_major": 2, "version_minor": 0 }, @@ -1936,7 +2184,23 @@ " with out:\n", " clear_output()\n", " with out:\n", - " display(Markdown(\"# \" + str(mlb.inverse_transform(clf.predict(vectorizer.transform([t.value])))[0])))\n", + " pred = clf.predict(vectorizer.transform([t.value]))\n", + " \n", + " #binary_pred = np.zeros_like(pred)\n", + " #binary_pred[np.arange(len(pred)), pred.argmax(1)] = 1\n", + " \n", + " binary_pred = []\n", + " \n", + " s = np.argsort(pred[0])[-5:]\n", + " \n", + " for i in s:\n", + " b = np.zeros_like(pred[0])\n", + " b[i] = 1\n", + " binary_pred.append(b)\n", + " \n", + " binary_pred = np.array(binary_pred)\n", + " \n", + " display(Markdown(\"# \" + str((mlb_single if SINGLE_LABEL else mlb).inverse_transform(binary_pred))))\n", "\n", "b.on_click(handle_submit)\n", " \n", @@ -2002,7 +2266,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.4" + "version": "3.6.5" } }, "nbformat": 4,