From 0bfbd73c5bfc838cde80594e1cd2f60eb1d7443c Mon Sep 17 00:00:00 2001 From: elavington Date: Mon, 25 Sep 2017 12:58:41 -0400 Subject: Suppress UserWarning in code --- bin/classifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/classifier.py b/bin/classifier.py index 044c6ca..1e27758 100755 --- a/bin/classifier.py +++ b/bin/classifier.py @@ -6,6 +6,9 @@ from sklearn.feature_extraction.text import CountVectorizer from sklearn.preprocessing import StandardScaler from sklearn.externals import joblib import cgi, cgitb +import warnings + +warnings.simplefilter("ignore", UserWarning) #----------------------------------------------\ # Parse the web-form information to variables \ -- cgit v1.2.3