Update README.md
Browse files123456723456978910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364651266676816171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717269707172737475767778798081828384858687888990919293949596979899100101102103104---license: apache-2.0datasets:- Kaylah072001/Stock_Graphs_Datasetmetrics:- accuracypipeline_tag: image-classification# For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1# Doc / guide: https://huggingface.co/docs/hub/model-cards{}---
### Model Description# Model Card for Model ID
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.
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).
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
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.
## Bias, Risks, and Limitations
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.
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.from tensorflow.keras.models import load_model
# Load the pre-trained modelmodel = load_model('path_to_model.h5')
# Example input data (image and numerical features)image_input = ... # Preprocessed image data of shape (150, 150, 3)numerical_input = ... # Numerical features (RSI, MACD, etc.)
# Make a predictionprediction = model.predict([image_input, numerical_input])print("Predicted Stock Movement:", prediction)
## Training Details
### Training Data
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.
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
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.
---
#### Training Hyperparameters
##architecture: image_branch: input_shape: [150, 150, 3] layers: - Conv2D_1: filters: 32 kernel_size: [3, 3] activation: relu - MaxPooling2D_1: pool_size: [2, 2] - Conv2D_2: filters: 64 kernel_size: [3, 3] activation: relu - MaxPooling2D_2: pool_size: [2, 2] - Conv2D_3: filters: 128 kernel_size: [3, 3] activation: relu - MaxPooling2D_3: pool_size: [2, 2] - Flatten
numerical_branch: input_shape: # 6 technical indicators layers: - Dense: units: 64 activation: relu
combined_layers: - Dense: units: 128 activation: relu - Dense: units: 1 activation: sigmoidimage_augmentation: - rescale: 1./255 - rotation_range: 10 - width_shift_range: 0.1 - height_shift_range: 0.1 - zoom_range: 0.1 - horizontal_flip: true
technical_indicators: - RSI: method: ta.momentum.RSIIndicator - MACD: method: ta.trend.MACD - Bollinger_Bands: method: ta.volatility.BollingerBands - ATR: method: ta.volatility.AverageTrueRange - OBV: method: ta.volume.OnBalanceVolumeIndicator- **Training regime:** Training regime: Mixed precision (fp32)Optimizer: AdamLoss function: Binary crossentropyMetrics: Accuracy, AUC-ROCCross-validation: 5-fold stratified k-fold
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
Performance was evaluated across different market conditions and stock types.
[More Information Needed]
#### Metrics
Accuracy
### Results
[More Information Needed]
#### Summary
README.md+97-65