diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-02 11:20:15 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-02 11:20:15 +0000 |
commit | ac8f3eb87638adb6feea1beb4377a82a50a3b141 (patch) | |
tree | 8737869b531d9964a3c18217cc04bbf8b5aa05b2 /marionette.py | |
parent | update (diff) | |
download | seer-ac8f3eb87638adb6feea1beb4377a82a50a3b141.tar.gz seer-ac8f3eb87638adb6feea1beb4377a82a50a3b141.zip |
update
Diffstat (limited to 'marionette.py')
-rwxr-xr-x | marionette.py | 12 |
1 files changed, 8 insertions, 4 deletions
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: |