Update README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---license: apache-2.0datasets:- Kaylah072001/Stock_Graphs_Datasetmetrics:- accuracypipeline_tag: image-classification### Model Description---#### Training Hyperparameters##architecture:image_branch:input_shape: [150, 150, 3]layers:- Conv2D_1:filters: 32kernel_size: [3, 3]activation: relu- MaxPooling2D_1:pool_size: [2, 2]- Conv2D_2:filters: 64kernel_size: [3, 3]activation: relu- MaxPooling2D_2:pool_size: [2, 2]- Conv2D_3:filters: 128kernel_size: [3, 3]activation: relu- MaxPooling2D_3:pool_size: [2, 2]- Flattennumerical_branch:input_shape: # 6 technical indicatorslayers:- Dense:units: 64activation: relucombined_layers:- Dense:units: 128activation: relu- Dense:units: 1activation: sigmoidimage_augmentation:- rescale: 1./255- rotation_range: 10- width_shift_range: 0.1- height_shift_range: 0.1- zoom_range: 0.1- horizontal_flip: truetechnical_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.OnBalanceVolumeIndicator123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104---# 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 Card for Model IDThe 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 UseThe 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 LimitationsThe 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 ModelUse 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 DataThe 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- **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]#### FactorsPerformance was evaluated across different market conditions and stock types.[More Information Needed]#### MetricsAccuracy### Results[More Information Needed]#### Summary
README.md+97-65