This project trains an Adaptive Neuro-Fuzzy Inference System (ANFIS) to predict the next day's closing stock price using historical stock market data.
We apply a fuzzy inference layer and rule-based ANFIS model to learn from key market indicators and forecast the nextclose value, i.e., the closing price of the following trading day.
- Model Type: Adaptive Neuro-Fuzzy Inference System
- Label:
nextclose(next-day closing price) - Features: Open, High, Low, Close, Volume
- Python 3.x
- NumPy
- Pandas
- Scikit-learn
- Matplotlib
dataset.csvis the input file- A processed version with the
nextclosecolumn is saved asupdated_dataset.csvduring preprocessing
git clone https://github.com/MohammadTvkl/Training-an-ANFIS-Using-Evolutionary-Algorithms.git
cd anfis-stock-price-prediction
pip install -r requirements.txtRun the notebook:
jupyter notebook notebooks/ANFIS_stock_prediction.ipynb- Visual comparison between predicted and actual
nextclosevalues - Basic statistics and evaluation results