--- license: mit language: - en --- ๐Ÿ” Model Overview Feature Description ๐Ÿ“ฆ Model Type LSTM (Long Short-Term Memory), a type of Recurrent Neural Network (RNN) ๐Ÿง  Frameworks Used TensorFlow (Keras API), Scikit-learn, yfinance, NumPy, Pandas ๐Ÿ“ˆ Input Past 60 days of Bitcoin closing prices ๐ŸŽฏ Output The predicted closing price for the next day ๐Ÿงช Goal Short-term (1-day ahead) price prediction ๐Ÿ“Š Evaluation Metric RMSE (Root Mean Squared Error) ๐Ÿ”ง What It Does Downloads historical BTC-USD data from Yahoo Finance Normalizes the closing price data between 0 and 1 using MinMaxScaler Splits the data into 80% training and 20% testing Uses a sliding window of 60 days to create time-sequenced input for LSTM Builds a 2-layer LSTM network with dropout to avoid overfitting Trains the model to minimize mean squared error Evaluates the model on test data Plots actual vs predicted prices Makes a future prediction for the next day based on the last 60 days ๐Ÿ’ก What This Model Is Useful For Educational purposes (learning LSTM, time series preprocessing) Research and experimentation with financial prediction models Visualization and evaluation of model performance Academic paper support (as youโ€™re already writing) โš ๏ธ Limitations It uses only closing price โ€“ no volume, sentiment, or indicators like RSI/MACD It performs single-step prediction (only the next day) May not adapt well to sudden market shocks Not suitable as-is for high-frequency trading or live trading bots ๐Ÿš€ How to Improve It Include more features: trading volume, high/low prices, technical indicators Add external data: news sentiment, macroeconomic indicators Use attention mechanisms or transformer architectures Convert it to multi-step forecasting (predict next 3, 5, or 7 days) Wrap it in a REST API or real-time dashboard Let me know if you want to: Package this into a web app Prepare a GitHub README for the code Extend the model for live trading (e.g., using Binance API) Or build a production-ready pipeline --- โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ Disclaimer: This model is developed strictly for experimental and educational purposes. It is not intended for real-world financial forecasting or investment decisions. Users are strongly advised not to rely on the outputs of this model for any form of trading or financial transactions. No guarantees are made regarding the accuracy or reliability of the predictions, and no liability or responsibility is accepted for any losses or damages resulting from the use of this system. By using this model, you acknowledge and agree that no claims or disputes will be accepted under any circumstances. ---