From 484a6b882633f48723c792bcd09ce2f0ca87ef5b Mon Sep 17 00:00:00 2001
From: Solange Emmenegger <solange.emmenegger@hslu.ch>
Date: Fri, 16 Sep 2022 08:32:06 +0000
Subject: [PATCH] Filter out Future Warning

---
 .../Data Quality Assessment_Solution.ipynb                   | 4 ++++
 .../Supervised Learning Fundamentals_Solution.ipynb          | 3 +++
 notebooks/04B Gradient Descent/Gradient Descent.ipynb        | 3 +++
 .../Support Vector Machines as Demo.ipynb                    | 3 +++
 notebooks/08A Neural Networks/Neural Networks.ipynb          | 3 +++
 .../08B Backpropagation/Neural Networks from Scratch.ipynb   | 4 +++-
 .../convolutional_neural_network.ipynb                       | 5 ++++-
 notebooks/09B Transfer Learning/transfer_learning.ipynb      | 4 +++-
 notebooks/11A Clustering/Clustering Examples.ipynb           | 3 +++
 notebooks/11A Clustering/Clustering.ipynb                    | 2 ++
 .../11B Anomaly Detection/Anomaly Detection - Part 2.ipynb   | 3 +++
 .../12A Association Rules/Association Rules Examples.ipynb   | 3 ++-
 notebooks/12A Association Rules/Association Rules.ipynb      | 3 ++-
 13 files changed, 38 insertions(+), 5 deletions(-)

diff --git a/notebooks/01A Data Quality Assessment/Data Quality Assessment_Solution.ipynb b/notebooks/01A Data Quality Assessment/Data Quality Assessment_Solution.ipynb
index de41241..754dfc1 100644
--- a/notebooks/01A Data Quality Assessment/Data Quality Assessment_Solution.ipynb	
+++ b/notebooks/01A Data Quality Assessment/Data Quality Assessment_Solution.ipynb	
@@ -58,6 +58,10 @@
     "import pandas as pd\n",
     "import seaborn as sns\n",
     "import matplotlib.pyplot as plt\n",
+    "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "sns.set()"
    ]
   },
diff --git a/notebooks/03A Supervised Learning/Supervised Learning Fundamentals_Solution.ipynb b/notebooks/03A Supervised Learning/Supervised Learning Fundamentals_Solution.ipynb
index 2091887..ecfc7c4 100644
--- a/notebooks/03A Supervised Learning/Supervised Learning Fundamentals_Solution.ipynb	
+++ b/notebooks/03A Supervised Learning/Supervised Learning Fundamentals_Solution.ipynb	
@@ -43,6 +43,9 @@
     "\n",
     "from sklearn.model_selection import KFold\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "from tqdm.notebook import tqdm\n",
     "import ipywidgets as widgets\n",
     "%matplotlib inline"
diff --git a/notebooks/04B Gradient Descent/Gradient Descent.ipynb b/notebooks/04B Gradient Descent/Gradient Descent.ipynb
index 196f1ec..d57a78a 100644
--- a/notebooks/04B Gradient Descent/Gradient Descent.ipynb	
+++ b/notebooks/04B Gradient Descent/Gradient Descent.ipynb	
@@ -31,6 +31,9 @@
     "from sklearn.metrics import r2_score\n",
     "from collections import defaultdict\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "from tqdm.notebook import tqdm\n",
     "from ipywidgets import interact\n",
     "%matplotlib inline"
diff --git a/notebooks/07B Support Vector Machines/Support Vector Machines as Demo.ipynb b/notebooks/07B Support Vector Machines/Support Vector Machines as Demo.ipynb
index 10e146e..c2394b8 100644
--- a/notebooks/07B Support Vector Machines/Support Vector Machines as Demo.ipynb	
+++ b/notebooks/07B Support Vector Machines/Support Vector Machines as Demo.ipynb	
@@ -37,6 +37,9 @@
     "from sklearn.metrics import accuracy_score\n",
     "from sklearn.metrics import f1_score\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "from scipy import stats\n",
     "import pylab as pl\n",
     "import random\n",
diff --git a/notebooks/08A Neural Networks/Neural Networks.ipynb b/notebooks/08A Neural Networks/Neural Networks.ipynb
index ad43392..da70ba0 100644
--- a/notebooks/08A Neural Networks/Neural Networks.ipynb	
+++ b/notebooks/08A Neural Networks/Neural Networks.ipynb	
@@ -28,6 +28,9 @@
     "from sklearn.metrics import accuracy_score\n",
     "sns.set()\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "%matplotlib inline"
    ]
   },
diff --git a/notebooks/08B Backpropagation/Neural Networks from Scratch.ipynb b/notebooks/08B Backpropagation/Neural Networks from Scratch.ipynb
index 18d922c..8ddd94c 100644
--- a/notebooks/08B Backpropagation/Neural Networks from Scratch.ipynb	
+++ b/notebooks/08B Backpropagation/Neural Networks from Scratch.ipynb	
@@ -20,7 +20,9 @@
    "outputs": [],
    "source": [
     "import numpy as np\n",
-    "import matplotlib.pyplot as plt"
+    "import matplotlib.pyplot as plt\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)"
    ]
   },
   {
diff --git a/notebooks/09A Convolutional Neural Network/convolutional_neural_network.ipynb b/notebooks/09A Convolutional Neural Network/convolutional_neural_network.ipynb
index 904f554..f5af201 100644
--- a/notebooks/09A Convolutional Neural Network/convolutional_neural_network.ipynb	
+++ b/notebooks/09A Convolutional Neural Network/convolutional_neural_network.ipynb	
@@ -47,7 +47,10 @@
     "import tensorflow as tf\n",
     "from tensorflow import keras\n",
     "from tensorflow.keras import datasets, layers, models\n",
-    "from tensorflow.keras.optimizers import SGD, Adam"
+    "from tensorflow.keras.optimizers import SGD, Adam\n",
+    "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)"
    ]
   },
   {
diff --git a/notebooks/09B Transfer Learning/transfer_learning.ipynb b/notebooks/09B Transfer Learning/transfer_learning.ipynb
index 07d8391..02c1c80 100644
--- a/notebooks/09B Transfer Learning/transfer_learning.ipynb	
+++ b/notebooks/09B Transfer Learning/transfer_learning.ipynb	
@@ -45,7 +45,9 @@
     "from tensorflow import keras\n",
     "from tensorflow.keras import datasets, layers, models\n",
     "from tensorflow.keras.optimizers import SGD, Adam\n",
-    "\n"
+    "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)"
    ]
   },
   {
diff --git a/notebooks/11A Clustering/Clustering Examples.ipynb b/notebooks/11A Clustering/Clustering Examples.ipynb
index 074350a..105c350 100644
--- a/notebooks/11A Clustering/Clustering Examples.ipynb	
+++ b/notebooks/11A Clustering/Clustering Examples.ipynb	
@@ -26,6 +26,9 @@
     "from mlxtend.preprocessing import TransactionEncoder\n",
     "from mlxtend.frequent_patterns import apriori, association_rules\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "%matplotlib inline"
    ]
   },
diff --git a/notebooks/11A Clustering/Clustering.ipynb b/notebooks/11A Clustering/Clustering.ipynb
index 21a35f3..1460ec9 100644
--- a/notebooks/11A Clustering/Clustering.ipynb	
+++ b/notebooks/11A Clustering/Clustering.ipynb	
@@ -30,6 +30,8 @@
     "from sklearn.decomposition import PCA\n",
     "\n",
     "from tqdm.notebook import tqdm\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
     "\n",
     "%matplotlib inline"
    ]
diff --git a/notebooks/11B Anomaly Detection/Anomaly Detection - Part 2.ipynb b/notebooks/11B Anomaly Detection/Anomaly Detection - Part 2.ipynb
index c114169..6dd322a 100644
--- a/notebooks/11B Anomaly Detection/Anomaly Detection - Part 2.ipynb	
+++ b/notebooks/11B Anomaly Detection/Anomaly Detection - Part 2.ipynb	
@@ -35,6 +35,9 @@
     "\n",
     "import matplotlib.gridspec as gridspec\n",
     "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
+    "\n",
     "from tqdm.notebook import tqdm\n",
     "import ipywidgets as widgets"
    ]
diff --git a/notebooks/12A Association Rules/Association Rules Examples.ipynb b/notebooks/12A Association Rules/Association Rules Examples.ipynb
index 5f7e936..59d06fd 100644
--- a/notebooks/12A Association Rules/Association Rules Examples.ipynb	
+++ b/notebooks/12A Association Rules/Association Rules Examples.ipynb	
@@ -23,7 +23,8 @@
     "\n",
     "from mlxtend.preprocessing import TransactionEncoder\n",
     "from mlxtend.frequent_patterns import apriori, association_rules\n",
-    "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
     "%matplotlib inline"
    ]
   },
diff --git a/notebooks/12A Association Rules/Association Rules.ipynb b/notebooks/12A Association Rules/Association Rules.ipynb
index 32ad56e..8668067 100644
--- a/notebooks/12A Association Rules/Association Rules.ipynb	
+++ b/notebooks/12A Association Rules/Association Rules.ipynb	
@@ -25,7 +25,8 @@
     "import plotly.graph_objs as go\n",
     "\n",
     "from tqdm.notebook import tqdm\n",
-    "\n",
+    "import warnings\n",
+    "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
     "%matplotlib inline"
    ]
   },
-- 
GitLab