Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant933 authored Jan 15, 2024
1 parent 1dfedb7 commit 5f522f7
Show file tree
Hide file tree
Showing 16 changed files with 1,617 additions and 0 deletions.
Binary file added blood_donation_prediction/dataset/tranfusion.zip
Binary file not shown.
749 changes: 749 additions & 0 deletions blood_donation_prediction/dataset/transfusion.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.
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.
797 changes: 797 additions & 0 deletions blood_donation_prediction/modal/blood_donation_prediction.ipynb

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions blood_donation_prediction/readme.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Blood Donation Analysis

## Project Overview

This project aims to create a predictive model that can accurately identify donors likely to donate blood again. The dataset used for this analysis is available on [Kaggle](https://www.kaggle.com/code/mmmarchetti/predicting-blood-donations).

## Dataset

- **Dataset Link:** [Blood Donation Dataset](https://www.kaggle.com/code/mmmarchetti/predicting-blood-donations)
- **Attributes:**
- Recency (months)
- Frequency (times)
- Monetary (c.c. blood)
- Time (months)

## Approach

1. **Data Understanding and Exploration:**
- Load and explore the dataset.
- Check for missing values, outliers, and data types.
- Visualize the distribution of each feature and the target variable.

2. **Data Preprocessing:**
- Handle missing values.
- Encode categorical variables if needed.
- Scale or normalize numerical features.
- Split the dataset into training and testing sets.

3. **Model Selection and Training:**
- Implement various machine learning models and deep learning methods.
- Train each model on the training dataset.

4. **Model Evaluation:**
- Evaluate each model's performance using metrics like accuracy, ROC AUC, and classification reports.
- Utilize cross-validation for robust performance assessment.

5. **Hyperparameter Tuning:**
- Optimize hyperparameters for selected models to improve performance.
- Use techniques like grid search or randomized search.

6. **Model Comparison:**
- Compare the performance of different models and identify the most effective ones.

7. **Deep Learning:**
- Implement at least one or two deep learning models using TensorFlow/Keras.
- Train and evaluate the deep learning models.

8. **Final Model and Conclusion:**
- Select the best-performing model based on evaluation metrics.
- Summarize the findings and draw conclusions about predictors of blood donation.

## How to Run the Code

1. Clone the repository:

```bash
git clone https://github.com/your-username/blood-donation-analysis.git
cd blood-donation-analysis

Install the required libraries:

bash

pip install pandas scikit-learn xgboost tensorflow

Open and run the Jupyter notebook:

jupyter notebook

### Author
Hemant chaudhary

0 comments on commit 5f522f7

Please sign in to comment.