For the full details and a video demo of this project see my linkedin post
brain-tumor-classification.ipynb: end-to-end workflow from data loading to evaluation and visualization.
The notebook is written for the Kaggle Brain Tumor MRI dataset with Training/ and Testing/ folders. Update the paths in the notebook if your data is stored elsewhere.
Expected structure:
brain-tumor-mri-dataset/
├── Training/
│ ├── glioma/
│ ├── meningioma/
│ ├── notumor/
│ └── pituitary/
└── Testing/
├── glioma/
├── meningioma/
├── notumor/
└── pituitary/
- Python 3.8+
- Jupyter Notebook
- Core packages used in the notebook:
- numpy, pandas
- matplotlib, seaborn, plotly
- scikit-learn
- tensorflow (keras)
- opencv-python, pillow
- python-dotenv (optional)
- google-generativeai (optional)
- Install dependencies in your environment.
- Open the notebook
- Update dataset paths if needed and run the cells in order.