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 | |
parent | update (diff) | |
download | seer-3032bb77f3cb8a71fcd2ffeff5e1be63f5837ce8.tar.gz seer-3032bb77f3cb8a71fcd2ffeff5e1be63f5837ce8.zip |
update
-rwxr-xr-x | lstm.py | 6 | ||||
-rwxr-xr-x | tfann.py | 31 |
2 files changed, 7 insertions, 30 deletions
@@ -2,6 +2,8 @@ # _*_ coding=utf-8 _*_ #original source:https://github.com/dashee87/blogScripts/blob/master/Jupyter/2017-11-20-predicting-cryptocurrency-prices-with-deep-learning.ipynb +#@#!pip install lxml +#@#!mkdir lstm-models import argparse import code import readline @@ -134,10 +136,10 @@ def load_models(crypto, crypto_short): def premain(argparser): signal.signal(signal.SIGINT, SigHandler_SIGINT) #here - #lstm_type_1("ethereum", "ether") + lstm_type_1("ethereum", "ether") #lstm_type_2("ethereum", "ether", 5, 20) #lstm_type_3("ethereum", "ether", 5, 20) - load_models("ethereum", "eth") + #load_models("ethereum", "eth") def main(): argparser = Argparser() @@ -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() |