From 0855119d30bd752f491ca0771ab3ca7f06e37cfb Mon Sep 17 00:00:00 2001
From: Franziska Oschmann <oschmanf@eu-c7-114-14.euler.ethz.ch>
Date: Wed, 28 Aug 2019 17:29:40 +0200
Subject: [PATCH] Feature extraction for only one subject

---
 09_eeg_use_case.ipynb | 42 ++++++++----------------------------------
 1 file changed, 8 insertions(+), 34 deletions(-)

diff --git a/09_eeg_use_case.ipynb b/09_eeg_use_case.ipynb
index c13a19a..0ef027f 100644
--- a/09_eeg_use_case.ipynb
+++ b/09_eeg_use_case.ipynb
@@ -45,17 +45,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": 35,
    "metadata": {},
    "outputs": [],
    "source": [
-    "all_data_files = glob.glob('data/eeg_use_case/train/*data.csv')\n",
-    "all_event_files = glob.glob('data/eeg_use_case/train/*events.csv')"
+    "all_data_files = glob.glob('data/eeg_use_case/train/subj7*data.csv')\n",
+    "all_event_files = glob.glob('data/eeg_use_case/train/subj7*events.csv')"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 9,
+   "execution_count": 36,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -68,12 +68,12 @@
     "        dfs.append(df)\n",
     "    #all_dfs = pd.concat(dfs)\n",
     "    all_dfs = dfs\n",
-    "    return all_dfs\n"
+    "    return all_dfs"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 21,
+   "execution_count": 37,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -104,7 +104,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 22,
+   "execution_count": 38,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -121,7 +121,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 32,
+   "execution_count": 39,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -135,32 +135,6 @@
     "    all_mean_power.append(np.mean(window**2, axis = 0))"
    ]
   },
-  {
-   "cell_type": "code",
-   "execution_count": 31,
-   "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "array([ 452366.678,  910243.046,  430559.552,  149318.27 ,    6119.372,\n",
-       "         80851.37 , 2663828.942,  124835.9  ,   15269.73 ,    6140.226,\n",
-       "         28285.898,   26204.874,   87730.286,    8506.566,   60342.57 ,\n",
-       "         51062.31 ,   35993.902,   33631.49 ,   16469.498,  650261.852,\n",
-       "         26657.906,   68666.258,   92072.606,   24539.54 ,   96328.972,\n",
-       "         36662.188,  129633.254,   40511.972,   42207.442,   27939.102,\n",
-       "         36481.492,   57098.198])"
-      ]
-     },
-     "execution_count": 31,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
-   "source": [
-    "mean_power"
-   ]
-  },
   {
    "cell_type": "code",
    "execution_count": null,
-- 
GitLab