From f231b8971199130deb14336ad45dc916ad95ef05 Mon Sep 17 00:00:00 2001 From: Elmo Chavez <50608494+sobieddch90@users.noreply.github.com> Date: Thu, 13 Jul 2023 01:02:28 +0200 Subject: [PATCH] Storing EEG Datasets in Google Drive --- EEG Dataset Exploration.ipynb | 5435 ++------------------------------- 1 file changed, 246 insertions(+), 5189 deletions(-) diff --git a/EEG Dataset Exploration.ipynb b/EEG Dataset Exploration.ipynb index 1aab3bb..91990cb 100644 --- a/EEG Dataset Exploration.ipynb +++ b/EEG Dataset Exploration.ipynb @@ -3,11 +3,11 @@ { "cell_type": "markdown", "metadata": { - "colab_type": "text", - "id": "view-in-github" + "id": "view-in-github", + "colab_type": "text" }, "source": [ - "\"Open\n" + "\"Open" ] }, { @@ -97,5124 +97,183 @@ "- Pip: `pip install mne`\n", "- Conda: `conda install -c conda-forge mne-base`\n", "\n", - "_Suggestion_: Create a new conda environment to install MNE\n", - "\n", - "**HMMLEARN**\\\n", - "Is a set of algorithms for unsupervised learning and inference of Hidden Markov Models. For supervised learning learning of HMMs and similar models see seqlearn.\\\n", - "https://hmmlearn.readthedocs.io/en/latest/index.html\n", - "\n", - "- Pip: `!pip install hmmlearn`\n", - "- Conda: `conda install -c conda-forge hmmlearn`\n" + "_Suggestion_: Create a new conda environment to install MNE\n" ] }, { "cell_type": "code", - "execution_count": 21, - "metadata": { - "id": "-BNnrwS7kMhA" - }, - "outputs": [], "source": [ - "import numpy as np\n", - "import pandas as pd\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "import openneuro as on\n", - "import mne\n", - "import os\n", - "\n", - "#from hmmlearn import hmm" - ] - }, - { - "cell_type": "markdown", + "%%capture\n", + "!pip install openneuro-py\n", + "!pip install mne" + ], "metadata": { - "id": "zvw_ohHZhQEh" + "id": "g_sw4-jbRQ5b" }, - "source": [ - "# Download Dataset\n", - "\n", - "Downloading the dataset directly from the website using openneuro package.\n", - "\n", - "**PD**: _running the download command may take several minutes to load and download all the datasets._\n" - ] + "execution_count": 1, + "outputs": [] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": { - "colab": { - "base_uri": "https://localhost:8080/", - "height": 257, - "referenced_widgets": [ - "3d9501b78b4d4fe083ebbcf6763e56ea", - "d2cad9f4d3bf45eeabbc125ad21f559d", - "4c6a6c417b7e4b078e3069335809796e", - "e49979f8b9364d58a544c39ce6dfaba2", - "9e58b979ae6647c4a174bc469f179901", - "a193d9437e81410190fb33cd60d2668a", - "9649c2a38c194a9cb697d2681c29132e", - "563df12e5ca848be95cd35fdbe05ba87", - "7269fa0498b04970ba57753795ab5b44", - "89fb9ba4cef148c69e79d84faa768cb1", - "a59223247b2a4c4e9f14df230cd947b7" - ] - }, - "id": "58FZHqG0UCIh", - "outputId": "d5300211-de37-4dd1-8596-c7fa6057c57d" + "id": "-BNnrwS7kMhA" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "👋 Hello! This is openneuro-py 2023.1.0. Great to see you! 🤗\n", - "\n", - " 👉 Please report problems 🤯 and bugs 🪲 at\n", - " https://github.com/hoechenberger/openneuro-py/issues\n", - "\n", - "🌍 Preparing to download ds004504 …\n" - ] - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "de1733cff7f54f8ea45ea3cd8116fd80", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "📁 Traversing directories for ds004504 : 0 entities [00:00, ? entities/s]" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "📥 Retrieving up to 357 files (5 concurrent downloads). \n", - "✅ Finished downloading ds004504.\n", - " \n", - "🧠 Please enjoy your brains.\n", - " \n" - ] - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "588e0494df064c2a89678e453c54999e", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "Skipping README: already downloaded.: 100%|##########| 6.61k/6.61k [00:00