This project demonstrates the implementation and evaluation of custom classifiers alongside a Random Forest classifier for a thyroid dataset. The custom classifiers include a Bernoulli Naive Bayes classifier and a K-Nearest Neighbors classifier.
The dataset used in this project is Thyroid_Diff.csv, which contains various features related to thyroid conditions. The target variable is whether the condition recurred (Recurred).
To run the code in this project, you'll need:
- Python 3.x
- Required libraries: numpy, pandas, scikit-learn, matplotlib, seaborn
-
Clone this repository:
git clone https://github.com/Sasi-Praneeth-Reddy/predicting-thyroid-cancer-reccurence.git
-
Install the required libraries using pip:
pip install -r requirements.txt
-
Ensure you have the dataset
Thyroid_Diff.csvplaced in thedata/directory. -
Run the Python script
thyroid cancer.pylocated in the directory. -
The script will generate various evaluation metrics and plots, including confusion matrices, ROC curves, accuracy comparison, and AUC comparison.
-
The predictions made by each classifier will be saved in the
outputs/predictions.txtfile.
- data/: Contains the dataset file
Thyroid_Diff.csv. - models/: Contains the Python script
thyroid cancer.pyfor implementing and evaluating custom classifiers. - outputs/: Contains output files such as confusion matrices, ROC curves, and comparison plots.
- tests/: Directory for storing any test scripts or test data.
- The
outputs/directory contains various evaluation plots and files, including confusion matrices, ROC curves, accuracy comparison, and AUC comparison.