https://github.com/taleblou/svr-price-prediction
This repository implements an SVR model for predicting prices of financial assets like stocks, currencies, and cryptocurrencies. It uses gradient boosting to capture complex patterns in price data, improving the accuracy of predictions across various datasets.
https://github.com/taleblou/svr-price-prediction
financial-predictions price-prediction support-vector-regression svr
Last synced: about 1 month ago
JSON representation
This repository implements an SVR model for predicting prices of financial assets like stocks, currencies, and cryptocurrencies. It uses gradient boosting to capture complex patterns in price data, improving the accuracy of predictions across various datasets.
- Host: GitHub
- URL: https://github.com/taleblou/svr-price-prediction
- Owner: taleblou
- License: mit
- Created: 2024-12-20T15:33:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-22T12:01:51.000Z (10 months ago)
- Last Synced: 2025-04-03T00:11:47.543Z (6 months ago)
- Topics: financial-predictions, price-prediction, support-vector-regression, svr
- Language: Python
- Homepage: https://taleblou.ir/
- Size: 2.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **SVR Model for Financial Predictions**
This repository contains an implementation of an SVR model, specifically designed for predicting the prices of financial instruments such as currencies, stocks, and cryptocurrencies. The SVR algorithm leverages gradient boosting techniques, enabling it to capture intricate patterns in price movements and handle various dataset characteristics effectively. This approach enhances the accuracy and robustness of price forecasts across various datasets.
This is the original code sample for the SVR model. Explore my GitHub repository for additional models and implementations that cater to different financial prediction needs.
## **Performance Metrics**
###
### **BTC-USD (Bitcoin)**
| Metric | Open | High | Low | Close |
| :---- | :---- | :---- | :---- | :---- |
| Mean Squared Error | 0.0004335535 | 0.0003444174 | 0.0004160193 | 0.0004404632 |
| Mean Absolute Error | 0.0148317574 | 0.0128863003 | 0.0148039363 | 0.0149677126 |
| R-squared | 0.9819777278 | 0.9859279439 | 0.9823487555 | 0.9819670531 |
| Median Absolute Error | 0.0104289147 | 0.0088814643 | 0.0105725433 | 0.0103255583 |
| Explained Variance Score | 0.9821329942 | 0.9862037651 | 0.9824015172 | 0.9820851117 |### **![][image1]**
### **GC=F (Gold Futures)**
| Metric | Open | High | Low | Close |
| :---- | :---- | :---- | :---- | :---- |
| Mean Squared Error | 0.0004285583 | 0.0003597738 | 0.0003841324 | 0.0004645633 |
| Mean Absolute Error | 0.0155833250 | 0.0144906970 | 0.0142102174 | 0.0161773615 |
| R-squared | 0.9783190802 | 0.9816342589 | 0.9806361806 | 0.9763622579 |
| Median Absolute Error | 0.0114806875 | 0.0121384897 | 0.0099167153 | 0.0131715867 |
| Explained Variance Score | 0.9783671010 | 0.9816771034 | 0.9806366238 | 0.9764424653 |### **![][image2]**
### **EURUSD (Euro/US Dollar)**
| Metric | Open | High | Low | Close |
| ----- | ----- | ----- | ----- | ----- |
| Mean Squared Error | 0.0002475016 | 0.0001848481 | 0.0001999083 | 0.0002481711 |
| Mean Absolute Error | 0.0117603310 | 0.0102123380 | 0.0102194053 | 0.0118021421 |
| R-squared | 0.9472765404 | 0.9612519791 | 0.9580081701 | 0.9469801811 |
| Median Absolute Error | 0.0088271289 | 0.0078894779 | 0.0076023538 | 0.0091335243 |
| Explained Variance Score | 0.9474154473 | 0.9613187392 | 0.9581523866 | 0.9470990792 |###
### **![][image3]**
### **GSPC (S\&P 500 Index)**
| Metric | Open | High | Low | Close |
| :---- | :---- | :---- | :---- | :---- |
| Mean Squared Error | 0.0002814720 | 0.0002205432 | 0.0002693110 | 0.0003159326 |
| Mean Absolute Error | 0.0120022037 | 0.0102594281 | 0.0116081449 | 0.0128960376 |
| R-squared | 0.9793603517 | 0.9845881815 | 0.9800899726 | 0.9777500754 |
| Median Absolute Error | 0.0087334798 | 0.0070796587 | 0.0083986821 | 0.0093586147 |
| Explained Variance Score | 0.9793616049 | 0.9847025079 | 0.9801110322 | 0.9777512454 |### **![][image4]**
## **Related Websites**
### [**Predict Price**](https://predict-price.com/)
Free AI-powered short-term (5/10/30 days) and long-term (6 months/1/2 years) forecasts for cryptocurrencies, stocks, ETFs, currencies, indices, and mutual funds.
### [**Magical Prediction**](https://magicalprediction.com/)
Get free trading signals generated by advanced AI models. Enhance your trading strategy with accurate, real-time market predictions powered by AI.
### [**Magical Analysis**](https://magicalanalysis.com/)
Discover free trading signals powered by expert technical analysis. Boost your forex, stock, and crypto trading strategy with real-time market insights.
## **About This Project**
This SVR model is an initial implementation, released for public use. The project demonstrates the potential of deep learning models for financial predictions. While this repository focuses on SVR, I have also utilized other models, the code for which is available on my GitHub[https://github.com/taleblou/].
## **How to Use**
1. Clone this repository.
2. Install the required libraries: `pip install -r requirements.txt`
3. Prepare your dataset and follow the instructions in the notebook or script.
4. Run the model and evaluate its performance using the provided metrics.## **License**
This project is open-source and available for public use under the MIT License. Contributions and feedback are welcome\!
[image1]:
[image2]:
[image3]:
[image4]: