tbdavid2019 commited on
Commit
a3ad576
·
1 Parent(s): f101777

說明文件

Browse files
Files changed (1) hide show
  1. README.md +113 -0
README.md CHANGED
@@ -11,3 +11,116 @@ short_description: 使用 Prophet 來預測股價, 如台積電輸入 2330.tw
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+
16
+ # Stock Price Prediction System
17
+
18
+ A web-based stock price prediction system built with Python, utilizing the Prophet model for time series forecasting.
19
+
20
+ ## Features
21
+
22
+ - Real-time Taiwan stock data retrieval
23
+ - Time series prediction using Facebook Prophet
24
+ - Interactive web interface with Gradio
25
+ - Supports custom prediction timeframes
26
+ - Visualization of predictions with confidence intervals
27
+ - Chinese font support for Taiwan stock market
28
+
29
+ ## Installation
30
+
31
+ 1. Clone the repository:
32
+ ```bash
33
+ git clone https://github.com/tbdavid2019/stock-prediction-prophet.git
34
+ cd stock-prediction-prophet
35
+ ```
36
+
37
+ 2. Install dependencies:
38
+ ```bash
39
+ pip install -r requirements.txt
40
+ ```
41
+
42
+ Note: For Prophet installation on Windows, you might need Microsoft Visual C++ Build Tools.
43
+
44
+ ## Usage
45
+
46
+ 1. Run the application:
47
+ ```bash
48
+ python app.py
49
+ ```
50
+
51
+ 2. Open your browser and navigate to the provided local URL
52
+ 3. Enter a Taiwan stock code (e.g., 2330.TW)
53
+ 4. Select historical data period
54
+ 5. Set prediction days
55
+ 6. Click "Start Prediction"
56
+
57
+ ## Dependencies
58
+
59
+ - gradio >= 4.0.0
60
+ - yfinance >= 0.2.3
61
+ - pandas >= 1.3.0
62
+ - numpy >= 1.21.0
63
+ - matplotlib >= 3.4.3
64
+ - prophet >= 1.1.4
65
+
66
+ ---
67
+
68
+ # 台股預測系統
69
+
70
+ 使用 Python 建立的網頁版股票預測系統,採用 Prophet 模型進行時間序列預測。
71
+
72
+ ## 功能特點
73
+
74
+ - 即時獲取台股資料
75
+ - 使用 Facebook Prophet 進行時間序列預測
76
+ - 基於 Gradio 的互動式網頁界面
77
+ - 支援自訂預測時間範圍
78
+ - 預測結果視覺化與信賴區間
79
+ - 支援中文字型顯示
80
+
81
+ ## 安裝方式
82
+
83
+ 1. 克隆專案:
84
+ ```bash
85
+ git clone https://github.com/tbdavid2019/stock-prediction-prophet.git
86
+ cd stock-prediction-prophet
87
+ ```
88
+
89
+ 2. 安裝依賴套件:
90
+ ```bash
91
+ pip install -r requirements.txt
92
+ ```
93
+
94
+ 注意:在 Windows 環境下安裝 Prophet 可能需要 Microsoft Visual C++ Build Tools。
95
+
96
+ ## 使用方法
97
+
98
+ 1. 執行應用程式:
99
+ ```bash
100
+ python app.py
101
+ ```
102
+
103
+ 2. 開啟瀏覽器,前往提供的本地網址
104
+ 3. 輸入台股代碼(例如:2330.TW / TSLA )
105
+ 4. 選擇歷史資料期間
106
+ 5. 設定預測天數
107
+ 6. 點擊「開始預測」
108
+
109
+ ## 系統需求
110
+
111
+ - Python 3.7 或更高版本
112
+ - 相關套件版本要求請參考 requirements.txt
113
+
114
+ ## 注意事項
115
+
116
+ - 股票預測結果僅供參考,不作為投資建議
117
+ - 建議使用穩定的網路連線以確保資料獲取
118
+ - 預測結果的準確性會受到多種因素影響
119
+
120
+ ## 贊助與支持
121
+
122
+ 如果您覺得這個專案對您有幫助,歡迎給予 Star ⭐️
123
+
124
+ ## 聯絡方式
125
+
126
+ 若有任何問題或建議,歡迎提出 Issue 或直接聯繫專案維護者。