Skip to content

Commit

Permalink
update colab section
Browse files Browse the repository at this point in the history
  • Loading branch information
donatella-cea committed Sep 6, 2023
1 parent 83bb014 commit b4b9f6a
Showing 1 changed file with 14 additions and 65 deletions.
79 changes: 14 additions & 65 deletions xai-model-agnostic/Tutorial_PermutationFeatureImportance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,76 +41,25 @@
"<a href=\"https://colab.research.google.com/github/HelmholtzAI-Consultants-Munich/Zero2Hero---Introduction-to-XAI/blob/master/xai-model-agnostic/Tutorial_PermutationFeatureImportance.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n"
]
},
{
"cell_type": "markdown",
"id": "9cebd3c3",
"metadata": {},
"source": [
"Now that you are visualizing the notebook in Colab, run the next cell to install the packages we will use.\n",
"There are few things you should follow in order to properly set the notebook up:\n",
"\n",
"1. Warning: This notebook was not authored by Google. *Click* on 'Run anyway'.\n",
"2. When the installation commands are done, there might be \"Restart runtime\" button at the end of the output. Please, *click* it. "
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "cc3439e4",
"execution_count": null,
"id": "e8e74fe9-8ec2-47e0-a944-b5699fc2b901",
"metadata": {},
"outputs": [],
"source": [
"# no additional installations needed"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"By running the next cell you are going to create a folder in your Google Drive. All the files for this tutorial will be uploaded to this folder. After the first execution you might receive some warning and notification, please follow these instructions:\n",
"1. Permit this notebook to access your Google Drive files? *Click* on 'Yes', and select your account.\n",
"2. Google Drive for desktop wants to access your Google Account. *Click* on 'Allow'.\n",
"#@markdown Now that you are visualizing the notebook in Colab:\n",
"\n",
"At this point, a folder has been created and you can navigate it through the lefthand panel in Colab, you might also have received an email that informs you about the access on your Google Drive. "
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# Create a folder in your Google Drive\n",
"# from google.colab import drive \n",
"# drive.mount('/content/drive')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# %cd drive/MyDrive"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# Don't run this cell if you already cloned the repo \n",
"# !git clone https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"# %cd XAI-Tutorials"
"#@markdown * Run this cell to connect your Google Drive to Colab and install packages\n",
"#@markdown * Permit this notebook to access your Google Drive files. Click on 'Yes', and select your account.\n",
"#@markdown * Google Drive for desktop wants to access your Google Account. Click on 'Allow'.\n",
"#@markdown At this point, a folder has been created in your Drive and you can navigate it through the lefthand panel in Colab, you might also have received an email that informs you about the access on your Google Drive.\n",
"\n",
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials"
]
},
{
Expand Down Expand Up @@ -875,7 +824,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.4"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit b4b9f6a

Please sign in to comment.