發表文章

目前顯示的是 1月, 2022的文章

tensorflow玩轉量化交易-python version相容問題

code from  https://github.com/borenwu/topquant try reading :  https://yuedu.baidu.com/ebook/2efb485c81eb6294dd88d0d233d4b14e84243e29?pn=4&pa=1 future: https://ithelp.ithome.com.tw/questions/10196572 相關版號請參閱1-7頁 python 3.6.4 pip install tensorflow==1.3.0 pip install tensorflow-gpu==1.3.0 REM Importerror: cannot import name moving_averages error occurs when we do not have TensorFlow-GPU installed. pip install numpy==1.16.4 pip install flask-restx==0.1.1 pip install keras==2.0.7 pip install tflearn==0.3.2 pip install pandas==0.20.3 REM 2-3 pip install plotly==2.0.15 pip install arrow==0.10.0 pip install bs4 pip install numexpr pip install psutil pip install tushare pip install  matplotlib==2.0.2 pip install robobrowser pip install sklearn -- 2-1 import tensorflow as tf import pandas as pd pd.set_option('display.width',450) fss='data/600663.csv' df=pd.read_csv(fss,index_col=0) print(df.tail()) --  今天狠心把tensorflow玩轉量化交易這本書拿起來K 實作第一個程式時 就不斷地翻車 原因都在版本相容性問題 至少我們以前學C++學JAVA都

compile-upgrade-apache-to-2-4-52-version-to-fix-the-dos-vulnerability-in

需要在 yum 上面設定 prxoy , 所以這邊就稍微紀錄一下。 設定路徑在 /etc/yum.conf #vim /etc/yum.conf 添加一行,這樣就可以了。 proxy=http://[proxyServer Link/IP]:port   其他指令參考這篇  https://linux.incomeself.com/yum%E5%AF%A6%E7%94%A8%E5%91%BD%E4%BB%A4%E7%B8%BD%E6%95%B4%E7%90%86/ wget強制使用proxy wget -e use_proxy=yes -e http_proxy=http://sproxy.cht.com.tw:8080 url 原本apachectl -V [root@pr1 ~]# apachectl -V AH00558: httpd: Could not reliably determine the server's fully qualified domain                          name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress                          this message Server version: Apache/2.4.6 (CentOS) Server built:   Nov  5 2018 01:47:09 Server's Module Magic Number: 20120211:24 Server loaded:  APR 1.4.8, APR-UTIL 1.5.2 Compiled using: APR 1.4.8, APR-UTIL 1.5.2 Architecture:   64-bit Server MPM:     prefork   threaded:     no     forked:     yes (variable process count) Server compiled with....  -D APR_HAS_SENDFILE  -D APR_HAS_MMAP  -D APR_HAVE_IPV6 (IPv4-m