From ac8f3eb87638adb6feea1beb4377a82a50a3b141 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 2 Sep 2018 15:50:15 +0430 Subject: update --- marionette.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'marionette.py') diff --git a/marionette.py b/marionette.py index 2222940..baa6f04 100755 --- a/marionette.py +++ b/marionette.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 +# _*_ coding=utf-8 _*_ import argparse import code @@ -31,10 +32,7 @@ class Argparser(object): parser.add_argument("--dbg", action="store_true", help="debug", default=False) self.args = parser.parse_args() -# write code here -def premain(argparser): - signal.signal(signal.SIGINT, SigHandler_SIGINT) - #here +def cnn_type_1(): url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" names = ["sepal-length", "sepal-width", "petal-length", "petal-width", "class"] dataset = pandas.read_csv(url, names=names) @@ -84,6 +82,12 @@ def premain(argparser): print(confusion_matrix(Y_validation, predictions)) print(classification_report(Y_validation, predictions)) +# write code here +def premain(argparser): + signal.signal(signal.SIGINT, SigHandler_SIGINT) + #here + cnn_type_1() + def main(): argparser = Argparser() if argparser.args.dbg: -- cgit v1.2.3