
Analyze diabetes data, build and evaluate a random forest model, and deploy a local server with a user interface to interact with the model.
Install and manage the required packages listed in the diabetes prediction project requirements file with specific versions, using pip install, then explore the libraries in the notebook.
Explore the diabetes prediction problem by loading a dataset in a Jupyter notebook, understanding and cleaning data, preparing features like BMI and insulin, and evaluating multiple models for outcome prediction.
Load data from the source into a data frame, read a csv, and inspect rows to confirm features including pregnancy, glucose, blood pressure, skin thickness, insulin, bmi, and outcome.
Explore data quickly with Pandas Profiling: generate a one-command profile report that reveals dataset size, missing values, distributions, correlations, and sample rows for rapid understanding.
Explore data structure with pandas profiling, inspect 768 rows and 9 features, check for nulls, describe numerical fields, and plot a diabetic vs non-diabetic pie chart using the target variable.
Identify zero values in key features and replace them with missing data. Impute by medians per outcome and compute missingness to support diabetes prediction.
Perform a 70/30 train-test split using the x features and y outcome death, with random_state 42 and stratified sampling to preserve equal zero/one distribution, preparing for model training and deployment.
Scale features using a standard scaler to bring values to the same scale, speeding model training and enabling deployment on unseen data, with confusion matrix and classification report for evaluation.
Explore the confusion matrix in diabetes prediction, learning how true positives, false positives, true negatives, and false negatives reveal model performance and inform the classification report.
Explore how the classification report extends the confusion matrix by detailing precision, recall, and support. Calculate precision and recall manually and examine their tradeoff for diabetes prediction.
Explore how the ROC curve plots true positive rate against false positive rate across thresholds, and how the AUC quantifies a classifier’s ability to distinguish positive from negative classes.
Compare models on the diabetes dataset with five-fold cross-validation to identify the best, visualize results with a box plot, and highlight random forest as top performer before hyperparameter tuning.
Select the random forest model with default parameters after it outperformed other models. Create a random forest classifier, feed data to predict, and review classification reports to assess its performance.
Apply a random forest classifier to diabetes data and evaluate performance. Use a classification report, confusion matrix, and ROC-AUC to interpret accuracy and test predictions.
Explore hyperparameter tuning with randomized search CV for a random forest classifier, comparing to grid search CV and optimizing accuracy under computational constraints.
Create the final random forest classifier using the selected hyperparameters from tuning, fit it on the training data, and compare its predictive performance to the vanilla model.
Assess the final diabetes prediction model with classification reports, confusion matrices, and AUC-ROC, reporting class accuracy and overall performance to inform deployment.
Explore final inference of a random forest diabetes prediction model, compare training fit with tuned variants, and save the final model for later deployment and cloud-based inference.
Load saved models and use them for predictions on unseen data, avoiding re-training. Store model weights in a saved model to enable faster, flexible deployment for future diabetes predictions.
Test the diabetes prediction model on unseen data by creating random data, applying scaling with the scalar, predicting with the model, and preparing for cloud deployment.
Explore streamlit as an open-source python library to quickly build interactive web apps for showcasing machine learning models and deployment, with minimal front-end effort and professional visuals.
Create a frontend interface to interact with the trained model, load the model from disk, preprocess inputs with a scaler, run inference, and display health status in the user interface.
Run the streamlit app locally with streamlit run app.py to launch the UI and predict diabetes from glucose, skin thickness, blood pressure, insulin, and bmi.
Deploy a diabetes prediction model to the Heroku cloud by creating an app in Europe region, linking a GitHub repo, and manual deployment, then test predictions via a public URL.
This course is about predicting whether or not the person has diabetes using Machine Learning Models. This is a hands on project where I will teach you the step by step process in creating and evaluating a machine learning model and finally deploying the same on Cloud platforms to let your customers interact with your model via an user interface.
This course will walk you through the initial data exploration and understanding, data analysis, data preparation, model building, evaluation and deployment techniques. We will explore multiple ML algorithms to create our model and finally zoom into one which performs the best on the given dataset.
At the end we will learn to create an User Interface to interact with our created model and finally deploy the same on Cloud.
I have splitted and segregated the entire course in Tasks below, for ease of understanding of what will be covered.
Task 1 : Installing Packages
Task 2 : Importing Libraries.
Task 3 : Loading the data from source.
Task 4 : Pandas Profiling
Task 5 : Understanding the data
Task 6 : Data Cleaning and Imputation
Task 7 : Train Test Split
Task 8 : Scaling using StandardScaler
Task 9 : About Confusion Matrix
Task 10 : About Classification Report
Task 11 : About AUC-ROC
Task 12 : Checking for model performance across a wide range of models
Task 13 : Creating Random Forest model with default parameters
Task 14 : Model Evaluation – Classification Report,Confusion Matrix,AUC-ROC
Task 15 : Hyperparameter Tuning using RandomizedSearchCV
Task 16 : Building RandomForestClassifier model with the selected hyperparameters
Task 17 : Final Model Evaluation – Classification Report,Confusion Matrix,AUC-ROC
Task 18 : Final Inference
Task 19 : Loading the saved model and scaler objects
Task 20 : Testing the model on random data
Task 21 : What is Streamlit and Installation steps.
Task 22 : Creating an user interface to interact with our created model.
Task 23 : Running your notebook on Streamlit Server in your local machine.
Task 24 : Pushing your project to GitHub repository.
Task 25 : Project Deployment on Heroku Platform for free.
Data Analysis, Model Building and Deployment is one of the most demanded skill of the 21st century. Take the course now, and have a much stronger grasp of data analysis, machine learning and deployment in just a few hours!
You will receive :
1. Certificate of completion from AutomationGig.
2. All the datasets used in the course are in the resources section.
3. The Jupyter notebook and other project files are provided at the end of the course in the resource section.
So what are you waiting for?
Grab a cup of coffee, click on the ENROLL NOW Button and start learning the most demanded skill of the 21st century. We'll see you inside the course!
Happy Learning !!
[Please note that this course and its related contents are for educational purpose only]
Music : bensound