diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-29 12:30:44 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-29 12:30:44 +0000 |
commit | 3032bb77f3cb8a71fcd2ffeff5e1be63f5837ce8 (patch) | |
tree | 6feaa17b0feaf4f941720d85507d77add869288f /tfann.py | |
parent | update (diff) | |
download | seer-3032bb77f3cb8a71fcd2ffeff5e1be63f5837ce8.tar.gz seer-3032bb77f3cb8a71fcd2ffeff5e1be63f5837ce8.zip |
update
Diffstat (limited to 'tfann.py')
-rwxr-xr-x | tfann.py | 31 |
1 files changed, 3 insertions, 28 deletions
@@ -2,7 +2,7 @@ # _*_ coding=utf-8 _*_ # original source-https://nicholastsmith.wordpress.com/2017/11/13/cryptocurrency-price-prediction-using-deep-learning-in-tensorflow/ -import argparse +#@#!pip install TFANN import code import readline import signal @@ -14,18 +14,6 @@ import pandas as pd import urllib.request import matplotlib.pyplot as mpl -def SigHandler_SIGINT(signum, frame): - print() - sys.exit(0) - -class Argparser(object): - def __init__(self): - parser = argparse.ArgumentParser() - parser.add_argument("--string", type=str, help="string") - parser.add_argument("--bool", action="store_true", help="bool", default=False) - parser.add_argument("--dbg", action="store_true", help="debug", default=False) - self.args = parser.parse_args() - def GetAPIUrl(cur, sts = 1420070400): return 'https://poloniex.com/public?command=returnChartData¤cyPair=USDT_{:s}&start={:d}&end=9999999999&period=7200'.format(cur, sts) @@ -134,25 +122,12 @@ def tfann_type_1(): mpl.show() # write code here -def premain(argparser): - signal.signal(signal.SIGINT, SigHandler_SIGINT) +def premain(): #here tfann_type_1() def main(): - argparser = Argparser() - if argparser.args.dbg: - try: - premain(argparser) - except Exception as e: - print(e.__doc__) - if e.message: print(e.message) - variables = globals().copy() - variables.update(locals()) - shell = code.InteractiveConsole(variables) - shell.interact(banner="DEBUG REPL") - else: - premain(argparser) + premain() if __name__ == "__main__": main() |