Kaylah072001 commited on
Commit
65fd3e0
·
verified ·
1 Parent(s): 3f84e4b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -65
README.md CHANGED
@@ -1,72 +1,104 @@
1
  ---
2
- license: apache-2.0
3
- datasets:
4
- - Kaylah072001/Stock_Graphs_Dataset
5
- metrics:
6
- - accuracy
7
- pipeline_tag: image-classification
8
 
9
- ### Model Description
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- ---
13
 
14
  #### Training Hyperparameters
15
 
16
- ##architecture:
17
- image_branch:
18
- input_shape: [150, 150, 3]
19
- layers:
20
- - Conv2D_1:
21
- filters: 32
22
- kernel_size: [3, 3]
23
- activation: relu
24
- - MaxPooling2D_1:
25
- pool_size: [2, 2]
26
- - Conv2D_2:
27
- filters: 64
28
- kernel_size: [3, 3]
29
- activation: relu
30
- - MaxPooling2D_2:
31
- pool_size: [2, 2]
32
- - Conv2D_3:
33
- filters: 128
34
- kernel_size: [3, 3]
35
- activation: relu
36
- - MaxPooling2D_3:
37
- pool_size: [2, 2]
38
- - Flatten
39
-
40
- numerical_branch:
41
- input_shape: # 6 technical indicators
42
- layers:
43
- - Dense:
44
- units: 64
45
- activation: relu
46
-
47
- combined_layers:
48
- - Dense:
49
- units: 128
50
- activation: relu
51
- - Dense:
52
- units: 1
53
- activation: sigmoid
54
- image_augmentation:
55
- - rescale: 1./255
56
- - rotation_range: 10
57
- - width_shift_range: 0.1
58
- - height_shift_range: 0.1
59
- - zoom_range: 0.1
60
- - horizontal_flip: true
61
-
62
- technical_indicators:
63
- - RSI:
64
- method: ta.momentum.RSIIndicator
65
- - MACD:
66
- method: ta.trend.MACD
67
- - Bollinger_Bands:
68
- method: ta.volatility.BollingerBands
69
- - ATR:
70
- method: ta.volatility.AverageTrueRange
71
- - OBV:
72
- method: ta.volume.OnBalanceVolumeIndicator
 
1
  ---
2
+ # For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/model-cards
4
+ {}
5
+ ---
 
 
6
 
7
+ # Model Card for Model ID
8
 
9
+ The Hybrid Image-Numerical Stock Prediction Model is a multi-input neural network designed to predict binary stock price movements (up/down) based on historical chart images and technical indicators. It processes both image data (stock charts) and numerical data (technical indicators like RSI, MACD, Bollinger Bands, ATR, and OBV) to make predictions.
10
+
11
+
12
+ This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
13
+
14
+ ## Uses
15
+
16
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
17
+
18
+ ### Direct Use
19
+
20
+ The model can be used for predicting short-term stock price movements based on historical data. It is intended for use in financial analysis when combined with other tools and strategies.
21
+
22
+ ## Bias, Risks, and Limitations
23
+
24
+ The model may exhibit biases based on the training dataset's characteristics. It may not perform well during sudden market shifts caused by external factors. Users should be cautious about over-reliance on the model's predictions without additional analysis.
25
+
26
+ ### Recommendations
27
+
28
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
29
+
30
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
31
+
32
+ ## How to Get Started with the Model
33
+
34
+ Use the code below to get started with the model.
35
+ from tensorflow.keras.models import load_model
36
+
37
+ # Load the pre-trained model
38
+ model = load_model('path_to_model.h5')
39
+
40
+ # Example input data (image and numerical features)
41
+ image_input = ... # Preprocessed image data of shape (150, 150, 3)
42
+ numerical_input = ... # Numerical features (RSI, MACD, etc.)
43
+
44
+ # Make a prediction
45
+ prediction = model.predict([image_input, numerical_input])
46
+ print("Predicted Stock Movement:", prediction)
47
+
48
+
49
+
50
+ ## Training Details
51
+
52
+ ### Training Data
53
+
54
+ The model was trained on the Kaylah072001/Stock_Graphs_Dataset, which includes stock chart images and corresponding price data. Technical indicators were extracted using the ta library.
55
+
56
+ [More Information Needed]
57
+
58
+ ### Training Procedure
59
+
60
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
61
+
62
+ #### Preprocessing [optional]
63
+
64
+ Image data was rescaled to a range of 0–1 and augmented using rotation, shift, zoom, and flip techniques. Numerical features were extracted dynamically during training using technical indicator calculations.
65
 
 
66
 
67
  #### Training Hyperparameters
68
 
69
+ - **Training regime:** Training regime: Mixed precision (fp32)
70
+ Optimizer: Adam
71
+ Loss function: Binary crossentropy
72
+ Metrics: Accuracy, AUC-ROC
73
+ Cross-validation: 5-fold stratified k-fold
74
+
75
+
76
+
77
+ ### Testing Data, Factors & Metrics
78
+
79
+ #### Testing Data
80
+
81
+ <!-- This should link to a Dataset Card if possible. -->
82
+
83
+ [More Information Needed]
84
+
85
+ #### Factors
86
+
87
+ Performance was evaluated across different market conditions and stock types.
88
+
89
+ [More Information Needed]
90
+
91
+ #### Metrics
92
+
93
+ Accuracy
94
+
95
+
96
+
97
+ ### Results
98
+
99
+ [More Information Needed]
100
+
101
+ #### Summary
102
+
103
+
104
+