Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pcos Detection #635

Merged
merged 13 commits into from
Jun 19, 2024
542 changes: 542 additions & 0 deletions Pcos Detection/Dataset/PCOS_infertility.csv

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,342 changes: 1,342 additions & 0 deletions Pcos Detection/Model/Pcos Detection.ipynb

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions Pcos Detection/Model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
**Pcos Detection**

🎯**GOAL**

The aim of the project is to build a model which would predict whether a person has the Pcos Detection

🧵**DATASET**

The dataset was taken from the Kaggle.

🧾**DESCRIPTION**

In this project, we compare the accuracies of different models to predict the pcos in the person.

🧮**WHAT I HAD DONE**

Steps followed:
* Downloaded the dataset from Kaggle.
* Checked for null values and performed exploratory data analysis
* Built models using the following algorithms: Logistic Regression, KNN, Random Forest
* Compared the accuracies
* Then performed cross validation on all the algorithms to see if the accuraries imrpove.

🚀**Models Implemented**

1) Logistic Regression
2) Decision Tree
3) Random forest
4) Gradient Boosting
5) Adaboost
6) Naive Bayes
7) Support Vector Machine
8) K-Nearest Neighbors

📚**LIBRARIES NEEDED**

* Pandas
* Matplotlib
* Seaborn
* Numpy
* Sklearn

📊**Exploratory Data Analysis Results**

![alt text](image-1.png)
![alt text](image.png)

📈 **Performance of the Models based on the Accuracy Scores**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown script you have written is not creating a table, instead it is showing one after another.

This is what you need to fix.


Classifier Accuracy Precision Recall F1 Score
0 Logistic Regression 0.703704 0.514286 0.545455 0.529412
1 Decision Tree 0.629630 0.405405 0.454545 0.428571
2 Random Forest 0.685185 0.487805 0.606061 0.540541
3 Gradient Boosting 0.731481 0.547619 0.696970 0.613333
4 AdaBoost 0.685185 0.487805 0.606061 0.540541
5 Naive Bayes 0.518519 0.373333 0.848485 0.518519
6 Support Vector Machine 0.305556 0.301887 0.969697 0.460432
7 K-Nearest Neighbors 0.694444 0.500000 0.606061 0.547945

📢**CONCLUSION**

From this project we conclude that Gradient Boosting has the highest accuracy among all the four algorithms, followed by Logistic Regression, Random forest , AdaBoost and KNN.

✒️**Contribution by**

Payal Sinha
Github: https://github.com/payalsinha12
Binary file added Pcos Detection/Model/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pcos Detection/Model/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Pcos Detection/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pandas==1.3.4
numpy==1.21.4
pandas==1.3.5
matplotlib==3.5.1
scikit-learn==1.0.1
seaborn==0.11.2