dirganmdcp/yfinance_Indonesia_Stock_Exchange
Updated β’ 5
How to use Hiruni2207/DataSynthis_ML_JobTask with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://Hiruni2207/DataSynthis_ML_JobTask")
This repository contains implementations of time-series forecasting for stock prices using both traditional statistical models (ARIMA, Prophet) and deep learning (LSTM).
The project demonstrates model comparison, rolling-window evaluation, and deployment to Hugging Face Hub.
lstm_model.h5 β Trained LSTM model scaler.pkl β Scaler used for preprocessing performance_summary.csv β Comparison of ARIMA, Prophet, and LSTM performance stock_forecasting_notebook.ipynb β Full notebook with preprocessing, training, evaluation, and plots upload_to_hf.py β Script for uploading to Hugging Face Hubpython -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install -r requirements.txt
jupyter notebook stock_forecasting_notebook.ipynb
yfinance (if you have internet) or use the included sample_stock.csv for an offline demo.upload_to_hf.py to push saved model files to the HF repo DataSynthis_ML_JobTask after creating it on the Hugging Face website (or the script will create the repo for you if you provide a valid token).HF_TOKEN or pass --token to the script.The performance of the three models on stock price forecasting is summarized below:
| Model | RMSE | MAPE (%) |
|---|---|---|
| ARIMA | 3.3748 | 1.8973 |
| Prophet | 4.7650 | 3.1859 |
| LSTM | 2.0890 | 1.2516 |