Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
tensorflow model下載點 : https://github.com/tensorflow/models | |
Model : ssd_mobilenet_v1_coco_11_06_2017 | |
webcam : inner webcam (default=0) | |
python version : 3.5 in Anaconda | |
tensorflow version : 1.13 cpu | |
opencv version : 4.0 | |
os : windows 10 | |
''' | |
#導入套件 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#導入套件 | |
%matplotlib inline | |
import datetime | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#專門做『技術分析』的套件 | |
from talib import abstract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#導入套件 | |
%matplotlib inline | |
import datetime | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#專門做『技術分析』的套件 | |
from talib import abstract | |
#專門抓台股的套件 | |
import twstock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#導入套件 | |
%matplotlib inline | |
import datetime | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#專門做『技術分析』的套件 | |
from talib import abstract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#導入套件 | |
import datetime | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#設定爬蟲股票代號 | |
sid = '0050' | |
#設定爬蟲時間 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#輸入套件 | |
%matplotlib inline | |
import pandas as pd | |
import numpy as np | |
#輸入台股歷年股災資料 | |
TAIEX = {'TAIEX_H':[10328.98, 6484.93, 7135, 9859.65, 9220.69, 10014.28, 11270.18], | |
'TAIEX_L':[3411.68, 3845.76, 5255.06, 3955.43, 6609.11, 7203.07, 9400.69]} | |
df_TAIEX = pd.DataFrame(TAIEX, index=['2000', '2002', '2004', '2007', '2011', '2015', '2018']) | |
df_TAIEX['TAIEX_dif'] = (df_TAIEX['TAIEX_H'] - df_TAIEX['TAIEX_L']) / df_TAIEX['TAIEX_H'] |