Kaylah072001 commited on
Commit
76a1d33
·
verified ·
1 Parent(s): 08dcfa2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -40
README.md CHANGED
@@ -1,44 +1,84 @@
1
- license: openrail
2
- language:
3
- en
4
- metrics:
5
- accuracy
6
- pipeline_tag: image-classification
7
- base_model:
8
- tensorflow/keras
9
- training_process:
10
- CNN with 3 convolutional layers, max pooling, and 2 dense layers
11
- Trained on custom stock chart image dataset
12
- Binary classification (bullish vs bearish)
13
- datasets:
14
- Custom stock chart image dataset (train/val/test splits)
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- Model Overview
17
- This Convolutional Neural Network (CNN) classifies stock chart images as bullish or bearish, using a binary classification approach to predict market trends based on visual patterns.
 
 
 
 
18
 
19
- Model Details
20
- Architecture: Sequential CNN with 3 Convolutional layers, MaxPooling, Flatten, and 2 Dense layers
21
- Input: RGB images (150x150 pixels)
22
- Output: Binary classification (0 for bearish, 1 for bullish)
23
- Training Data: Custom dataset of stock chart images, split into train/validation/test sets
24
- Metrics: Accuracy, Precision, Recall, F1-Score
 
25
 
26
- Intended Use
27
- Primary Use: Automated classification of stock chart patterns
28
- Intended Users: Financial analysts, traders, automated trading systems
29
- Out-of-Scope Uses: Real-time trading decisions without human oversight, long-term market predictions
30
- Performance and Limitations
31
- Metrics: Accuracy: 0.57
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
- Limitations:
34
- Binary classification only
35
- May not capture complex market dynamics
36
- Performance depends on training data quality
37
- Ethical Considerations
38
- Potential for dataset-based biases
39
- Not to be used as sole basis for financial decisions
40
- May perpetuate existing market trends
41
- Caveats and Recommendations
42
- Regular retraining with recent data recommended
43
- Use alongside other analysis tools and human expertise
44
- Consider expanding to multi-class classification
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ stock_trend_analysis:
2
+ model:
3
+ architecture:
4
+ image_branch:
5
+ input_shape: [150, 150, 3]
6
+ layers:
7
+ - Conv2D_1:
8
+ filters: 32
9
+ kernel_size: [3, 3]
10
+ activation: relu
11
+ - MaxPooling2D_1:
12
+ pool_size: [2, 2]
13
+ - Conv2D_2:
14
+ filters: 64
15
+ kernel_size: [3, 3]
16
+ activation: relu
17
+ - MaxPooling2D_2:
18
+ pool_size: [2, 2]
19
+ - Conv2D_3:
20
+ filters: 128
21
+ kernel_size: [3, 3]
22
+ activation: relu
23
+ - MaxPooling2D_3:
24
+ pool_size: [2, 2]
25
+ - Flatten
26
 
27
+ numerical_branch:
28
+ input_shape: [5] # 5 technical indicators
29
+ layers:
30
+ - Dense:
31
+ units: 64
32
+ activation: relu
33
 
34
+ combined_layers:
35
+ - Dense:
36
+ units: 128
37
+ activation: relu
38
+ - Dense:
39
+ units: 1
40
+ activation: sigmoid
41
 
42
+ data_generator:
43
+ class: CombinedDataGenerator
44
+ parameters:
45
+ batch_size: 32
46
+ img_size: [150, 150]
47
+ shuffle: true
48
+
49
+ feature_extraction:
50
+ image_processing:
51
+ - grayscale_conversion
52
+ - edge_detection:
53
+ method: Canny
54
+ threshold1: 50
55
+ threshold2: 150
56
+ - line_detection:
57
+ method: HoughLinesP
58
+ min_line_length: 20
59
+ max_line_gap: 5
60
 
61
+ technical_indicators:
62
+ - slope:
63
+ method: polyfit
64
+ degree: 1
65
+ - volatility:
66
+ method: standard_deviation
67
+ - trend_strength:
68
+ method: mean_absolute_diff
69
+ - momentum:
70
+ method: price_difference
71
+ period: 10
72
+ - support_resistance:
73
+ method: min_max_difference
74
+
75
+ training:
76
+ optimizer: adam
77
+ loss: binary_crossentropy
78
+ metrics: [accuracy]
79
+
80
+ requirements:
81
+ - tensorflow
82
+ - opencv-python
83
+ - numpy
84
+ - scikit-learn