A simple Recurrent Neural Network (RNN) built using Keras to perform sentiment analysis on the IMDB movie reviews dataset.
Get started in minutes:
git clone https://github.com/coder-tejas/SimpleRNN.git
cd SimpleRNN# Create virtual environment
python -m venv venv
# Activate
# On Windows
venv\Scripts\activate
# On Linux/Mac
source venv/bin/activatepip install -r requirements.txtLaunch Jupyter Notebooks:
jupyter notebookOpen and run:
RNN.ipynbembedding.ipynbsimplernn.ipynbprediction.ipynb
Or run the standalone Python script:
python main.py(⚡ Make sure simple_rnn_imdb.h5 model file is present if you want to load a pretrained model.)
SimpleRNN/
├── RNN.ipynb # Introduction to RNNs
├── embedding.ipynb # Word embedding demo
├── simplernn.ipynb # Building/training SimpleRNN
├── prediction.ipynb # Predictions using the model
├── main.py # Script version
├── simple_rnn_imdb.h5 # Pretrained model file
├── requirements.txt # List of dependencies
└── README.md # (This file!)- Python 3.7+
- TensorFlow & Keras
- NumPy
- Jupyter Notebook
- Add LSTM / GRU models for better performance
- Explore attention mechanisms
- Fine-tune with custom datasets
This project is licensed under the MIT License.
Built with ❤️ by coder-tejas