aboutsummaryrefslogtreecommitdiffstats
path: root/bin/classifier.py
diff options
context:
space:
mode:
authorelavington <elavington@hotmail.com>2017-09-25 12:58:41 -0400
committerelavington <elavington@hotmail.com>2017-09-25 12:58:41 -0400
commit0bfbd73c5bfc838cde80594e1cd2f60eb1d7443c (patch)
tree17cd9440f1b1b7c0f4be0446dc148b639240244f /bin/classifier.py
parent1475085bf6cc046260e570cd53cc590201f66b40 (diff)
downloadcressdna-0bfbd73c5bfc838cde80594e1cd2f60eb1d7443c.tar.gz
cressdna-0bfbd73c5bfc838cde80594e1cd2f60eb1d7443c.zip
Suppress UserWarning in code
Diffstat (limited to 'bin/classifier.py')
-rwxr-xr-xbin/classifier.py3
1 files changed, 3 insertions, 0 deletions
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 \