Machine Learning – a concept that most people struggle to comprehend and most of them who do comprehend would have many different perceptions about it. I myself have been working on Machine Learning and its algorithms for about 6 months and after some rigorous training in Machine Learning and its subsidiary subjects such as Statistics and Linear Algebra, I’ve finally started to get a hold of it (even though a lot of work is yet to be done).
We launched our first native app -SkillChem- yesterday and today here we are with our first web app. This app is a diabetes detector and detects whether a particular patient has diabetes depending upon various parameters such as glucose, insulin, diabetes pedigree function etc. According to the creators of the dataset, the diabetes pedigree function scores likelihood of diabetes based upon family history of the disease. This web app is based on Machine Learning and works on the Random Forest Classifier algorithm.
We have deployed the app using Streamlit. It is an open source framework that allows data science teams to deploy web apps fairly easily. It’s one of the best hosting services I’ve used and it’s great for quick and easy deployment of web apps. The app is coded in python.
The web app uses interactive visual and graphical interpretations to display the outcome and compare the input parameters given by the user. We trained the dataset using 20% of it as our test size. The sidebar sliders help in changing the values of the parametres for determination of the result. The graphs compare the values of the patient with others ( both with diabetic and non-diabetic patients). It also provides the accuracy of the result.
For those who want to learn about Machine Learning, its applications and algorithms, Professor Andrew Ng has a great course for it on coursera. He explains about the multiple machine learning algorithms and applications in depth. It’s a good course for people of all ages looking to expand their knowledge in Machine Learning. The course is completely free to study. The link for the course is : https://www.coursera.org/learn/machine-learning
This web app was a learning curve for us and has improved our knowledge about Machine learning significantly. We hope to deploy more apps in the future and share them with you. Feel free to add onto this project and don’t hesitate to drop by any suggestions. The link for the diabetes detector web app is as follows :
https://share.streamlit.io/pranav-coder2005/diabetes_detector/main/diabetes_detector_app.py
About the dataset : This dataset is originally from the National Institute of Diabetes and Digestive and Kidney Diseases. The objective of the dataset is to diagnostically predict whether or not a patient has diabetes, based on certain diagnostic measurements included in the dataset. Several constraints were placed on the selection of these instances from a larger database. In particular, all patients here are females at least 21 years old of Pima Indian heritage.
The datasets consists of several medical predictor variables and one target variable, Outcome. Predictor variables includes the number of pregnancies the patient has had, their BMI, insulin level, age, and so on.
Disclaimer: This is just a learning project based on one particular dataset so please do not depend on it to actually know if you have diabetes or not. It might still be a false positive or false negative. A doctor is still the best fit for the determination of such diseases.
November is the diabetes awareness month and world diabetes day is observed on 14 November of each year. Diabetes awareness groups spread awareness about the disease throughout the month through several programs, charitable events, campaigns etc. The purpose of it is to spread awareness about this disease all around the world and to fight it together. World Diabetes Day was created in 1991 by International Diabetes Federation and the World Health Organization in response to growing concerns about the ever increasing health threat posed by diabetes. ‘The Nurse and Diabetes” was the theme was World Diabetes Day in 2020. The campaign aims to raise awareness around the crucial role that nurses play in supporting people living with diabetes. The blue circle is the universal symbol for diabetes. It was launched in 2006 to give diabetes a common identity. The symbol aims to support all existing efforts to raise awareness about diabetes. Let’s show our support for diabetes awareness and help many patients around the world.
Explanation of the Code and how you can make this yourself !
Here, I am going to go through the code in a very concise and simple manner so that people with even minimal experience in programming or data science can follow along and benefit it. This app has been coded in python and has been deployed on streamlit as mentioned before. I’ve also used the Random Forest Classifier Algorithm for this particular problem.
Alright so lets finally get started. First up I’ve imported the python packages / libraries that I’ve used for this app. More information for them is available on the project template of SkillTools.
import streamlit as st
import pandas as pd
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import plotly.figure_factory as ff
from sklearn.metrics import accuracy_score
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
import seaborn as sns
from PIL import Image
After this I have included a slight description of the app as a string which includes the dataset resource and the developers. After which we need to feed in our dataset and define some headings to that the users can know what this is.
df = pd.read_csv(r'diabetes.csv')
st.sidebar.header('Patient Data')
st.subheader('Training Dataset')
st.write(df.describe())
After this we need to train and test our data. For the purpose of this app, I’ve used the test size and train size as 20% and 80% respectively.
x = df.drop(['Outcome'], axis = 1)
y = df.iloc[:, -1]
x_train, x_test, y_train, y_test = train_test_split(x,y, test_size = 0.2, random_state = 0)
Once we’re done with this, we need to define the user report and the user report data depending on the various parameters given in the training dataset. For this particular dataset the parameters are Glucose, Insulin, Blood Pressure, BMI, Age, Diabetes Pedigree Function (DPF), Number of pregnancies and Skin Thickness. We also need to mention the range of values of these parameters so that the user can change them using the sliders in the sidebar.
def user_report():
glucose = st.sidebar.slider('Glucose', 0,250, 120 )
insulin = st.sidebar.slider('Insulin', 0,850, 90 )
bp = st.sidebar.slider('Blood Pressure', 0,300, 85 )
bmi = st.sidebar.slider('BMI', 0,70, 22 )
dpf = st.sidebar.slider('Diabetes Pedigree Function', 0.0,3.0, 0.8 )
age = st.sidebar.slider('Age', 21,120, 55 )
pregnancies = st.sidebar.slider('Pregnancies', 0,10, 1 )
skinthickness = st.sidebar.slider('Skin Thickness', 0,100, 35 )
user_report_data = {
'glucose':glucose,
'insulin':insulin,
'bp':bp,
'bmi':bmi,
'dpf':dpf,
'age':age,
'pregnancies':pregnancies,
'skinthickness':skinthickness,
}
report_data = pd.DataFrame(user_report_data, index=[0])
return report_data
user_data = user_report()
st.subheader('Patient Data')
st.write(user_data)
Now here’s the part that we run the Random Forest Classifier Algorithm, fit the data and run the model based on the input dataset.
rf = RandomForestClassifier()
rf.fit(x_train, y_train)
user_result = rf.predict(user_data)
Now we finally come to my most favourite part of these web apps: Visualizations. I have been experimenting a lot with a number of visualization libraries but some of them really stand out for me and I use them often in my apps. So here as a convention I’ve used blue colour for non diabetic patients and the colour red for diabetic patients.
st.title('Graphical Patient Report')
if user_result[0]==0:
color = 'blue'
else:
color = 'red'
We start off with glucose and code in its visualizations. Here I’ve basically plotted a seaborn scatterplot with age on the x axis and the values of the glucose parameter on the y axis. I have used the purple palette and have scaled the axes according to the data. A value of 0 represents a healthy case whereas a value of 1 represents an unhealthy case.
st.header('Glucose Value Graph (Yours vs Others)')
fig_glucose = plt.figure()
ax3 = sns.scatterplot(x = 'Age', y = 'Glucose', data = df, hue = 'Outcome' , palette='Purples')
ax4 = sns.scatterplot(x = user_data['age'], y = user_data['glucose'], s = 150, color = color)
plt.xticks(np.arange(0,100,5))
plt.yticks(np.arange(0,250,20))
plt.title('0 - Healthy & 1 - Unhealthy')
st.pyplot(fig_glucose)
Now that we are done with one parameter, we can very easily do this same for the other parameters as well. Just replace the above code snippet with that of the other parameters and you are set to go. I will leave this as an exercise for you’ll and if you have any queries regarding it, please do ask. After completing the visualizations for all the parameters, we are finally ready to display the outcome and the prediction. I have given the outcome in the form of a user report.
st.subheader('Your Report: ')
output=''
if user_result[0]==0:
output = 'Congratulations, you are not Diabetic'
else:
output = 'Unfortunately, you are Diabetic'
st.title(output)
Next, I have duly given the dataset credits to the respective owners and authorities in charge of this dataset and have adhered to its license which is Open Data Commons Public Domain Dedication and License (PDDL) in this case. I have also mentioned where I received the dataset from (UCI Machine Learning Repository) and have cited the original creators of this dataset for their commendable work.
//st.sidebar.subheader("""An article about this app: https://proskillocity.blogspot.com/2021/04/official-launch-of-our-first- web-app.html""")
//st.write("Dataset citation : Smith, J.W., Everhart, J.E., Dickson, W.C., Knowler, W.C., & Johannes, R.S. (1988). Using the ADAP learning algorithm to forecast the onset of diabetes mellitus. In Proceedings of the Symposium on Computer Applications and Medical Care (pp. 261--265). IEEE Computer Society Press.")
//st.write("Original owners of the dataset: Original owners: National Institute of Diabetes and Digestive and Kidney Diseases (b) Donor of database: Vincent Sigillito (vgs@aplcen.apl.jhu.edu) Research Center, RMI Group Leader Applied Physics Laboratory The Johns Hopkins University Johns Hopkins Road Laurel, MD 20707 (301) 953-6231 © Date received: 9 May 1990")
//st.write("This dataset is also available on the UC Irvine Machine Learning Repository")
//st.write("Dataset License: Open Data Commons Public Domain Dedication and License (PDDL)")
To cap up this web app, I’ve given a disclaimer that I give for all my BioTechnology and medical applications of data science that this is an application based on one particular dataset so we cannot use it universally. I have also attached the logo of Skillocity at the end.
So that’s it from this web app and I’ll see you soon with another fun application of Machine Learning / Data Science and give some interesting insights. Hasta pronto !
Utility olma konusu biraz göreceli bir kavram: adam vip locada
maç izlemek için oylamaya katilir, antrenman ya da stadyum
gezisi, antrenör ve futbolcular ile yemek tanışma gibi etkinlikler bazıları için rüya gibi bir utility
denebilir. Ayrıca farklı cazip imkanlar sunulmaya devam edilecektir diye düşünüyorum.
Ekstra Casino Promosyon Kodu – Mobil casino
oyunları ile eğlenin Sayfanın önemli özelliklerinden biri
olan Hiltonbet kayıt işlemleri ise.
Eğer tiroid bezi yavaş çalışıyorsa, düşünce hızından, hareket hızına
kadar vücuttaki her şey yavaşlar. Bununla birlikte, saç dökülmesi, cilt kuruluğu,
kabızlık, görme bozukluğu gibi birçok sorunun kaynağı yine tiroid bezinin az çalışmasına bağlı olarak ortaya çıkabilecek sorunlar arasında yer almaktadır.
I am sure this piece of writing has touched all the internet visitors,
its really really nice post on building up new webpage.
Russian institute lesson’ Search, free sex videos. porn in your language3damateurana russian institute full
movie deniska institute czech silvie young harlots russian institute movie russian institute school
xxx russian institute lesson 22 harmony young Russian mature mom in threesome 12.
14.9k 82% 19min 360p. Russian mature.
Porno – Porno izle, HD Sikiş Seyret, Türk Porno, Seks Video.
Yeni Porno film izleme Oynaşmak isteyen sevgilisiyle
sıcak anal seks keyif veriyor.
Im pretty pleased to discover this page. I wanted to thank you for ones time for this particularly wonderful read!! I definitely liked every little bit of it and I have you bookmarked to look at new stuff on your blog.
👉 The AI Content Generator Everyone Should Be Using :). Click Here:👉 https://stanford.io/3FXszd0
👉 I dont need to tell you how important it is to optimize every step in your SEO pipeline. But unfortunately, its nearly impossible to cut out time or money when it comes to getting good content. At least thats what I thought until I came across Article Forge…Built by a team of AI researchers from Stanford, MIT, Carnegie Mellon, Harvard, Article Forge is an AI content writer that uses deep learning models to research, plan out, and write entire articles about any topic with the click of a button. Their team trained AI models on millions of articles to teach Article Forge how to draw connections between topics so that each article it writes is relevant, interesting and useful. All their hard work means you just enter a few keywords and Article Forge will write a complete article from scratch making sure every thought flows naturally into the next, resulting in readable, high quality, and unique content. Put simply, this is a secret weapon for anyone who needs content.I get how impossible that sounds so you need to see how Article Forge writes a complete article with the Click Here:👉 https://stanford.io/3FXszd0
👉 Tara He wants to talk frankly with you and show you something, you will like it. Click Here:👉 http://bit.do/fVzCH
Artificial intelligence creates content for the site, no worse than a copywriter, you can also use it to write articles. 100% uniqueness :). Click Here:👉 https://stanford.io/3FXszd0
👉 👉 $5,000 FREE EXCHANGE BONUSES BELOW 📈 👉 PlaseFuture FREE $3,000 BONUS + 0% Maker Fees 📈 + PROMOCODE FOR NEWS USERS OF THE EXCHANGE 👉 [M0345IHZFN] — 0.01 BTC 👉 site: https://buycrypto.in.net Our site is a secure platform that makes it easy to buy, sell, and store cryptocurrency like Bitcoin, Ethereum, and More. We are available in over 30 countries worldwide.
Free. Sign up to receive $100, Trade to receive $5500. Click Here:👉 https://millionairego.page.link/free
levaquin 500mg cost order levaquin pill
order avodart 0.5mg buy generic ondansetron 4mg ondansetron online order
spironolactone without prescription finasteride 1mg sale buy diflucan 200mg online
generic ampicillin 250mg trimethoprim for sale order erythromycin
order generic fildena 100mg tamoxifen without prescription robaxin 500mg cheap
order sildenafil 50mg for sale estradiol usa estrace ca
buy generic lamotrigine buy retin generic retin gel uk
buy tadalis without prescription tadalis 20mg usa order generic voltaren 100mg
buy accutane 10mg amoxil 1000mg cheap order zithromax
order indomethacin 75mg generic indocin 50mg for sale order trimox without prescription
viagra cialis Us pharmacy viagra sildenafil citrate 50 mg
buy anastrozole online cheap Canadian healthcare viagra order generic viagra 100mg
acheter 40mg cialis en ligne generique sildenafil 200mg sildenafil prix
deltasone 40mg sale generic cialis name sildenafil 50mg over the counter
cialis 20mg bestellen sildenafil 200mg kaufen ohne rezept viagra 200mg generika rezeptfrei kaufen
brand isotretinoin order stromectol 12mg stromectol tablets buy online
buy provigil sale Cialis cost oral acetazolamide 250 mg
buy doxycycline 100mg online brand clomiphene furosemide drug
cost altace 5mg order ramipril generic buy azelastine 10 ml sale
order catapres pills antivert 25 mg tablet buy spiriva 9 mcg for sale
order buspar 10mg sale buy phenytoin online cheap ditropan generic
order hytrin 1mg pills hytrin 1mg ca order azulfidine pills
cost alendronate paracetamol for sale online famotidine 20mg canada
benicar pills order verapamil for sale diamox 250 mg tablet
order tacrolimus 1mg pills order prograf urso for sale
purchase isosorbide generic buy imdur 20mg generic buy micardis
order bupropion 150mg for sale purchase quetiapine pill buy quetiapine 100mg generic
purchase molnunat sale buy generic naprosyn buy lansoprazole 30mg without prescription
zoloft 100mg sale escitalopram 20mg tablet guaranteed viagra overnight delivery usa
brand imuran 100mcg sildenafil mail order order viagra without prescription
онлайн порно чат девушек. Click Here:👉 http://rt.livepornosexchat.com/
generic for cialis viagra tablet ssellers order sildenafil 50mg online cheap
cialis overnight delivery amantadine cheap symmetrel 100mg brand
купоны мелбет. Click Here:👉 http://lynks.ru/geshi/php/?melbet_promokod_pri_registracii_2020.html
промокод на мелбет на бесплатную ставку. Click Here:👉 http://lynks.ru/geshi/php/?melbet_promokod_pri_registracii_2020.html
промокод мелбет на ставку. Click Here:👉 http://lynks.ru/geshi/php/?melbet_promokod_pri_registracii_2020.html
pfizer viagra 100mg price
revia medication buy naltrexone 50mg pills buy abilify 20mg sale
промокод мел бет. Click Here:👉 http://lynks.ru/geshi/php/?melbet_promokod_pri_registracii_2020.html
order dapsone 100mg generic nifedipine online buy brand perindopril
provera price cost microzide order cyproheptadine generic
ventolin 4mg
modafinil us stromectol tablets for humans ivermectin 2mg online
buy fluvoxamine 50mg generic cheap ketoconazole 200mg buy glipizide 10mg pill
buy isotretinoin 10mg amoxil without prescription deltasone 10mg uk
buy nootropil 800mg sale nootropil order viagra buy online
zithromax 500mg drug zithromax canada gabapentin order
tadalafil price cheap sildenafil order viagra 50mg pills
doxycycline for sale over the counter
buy lasix generic hydroxychloroquine 400mg without prescription order plaquenil for sale
viagra cialis order clomipramine pill order generic clomipramine 50mg
buy chloroquine 250mg pill chloroquine 250mg uk olumiant oral
buy sporanox 100 mg online cheap tinidazole 300mg generic tinidazole price
Thank you for the auspicious writeup.
glucophage for sale lipitor 10mg price brand cialis 5mg
This is my first time i visit here. I found so many helpful stuff in your website especially its discussion. From the tons of responses on your posts, I guess I am not the only one having all the enjoyment here! keep up the excellent work
order zyprexa 10mg online diovan 80mg price order valsartan 80mg pill
generic norvasc sildenafil 50mg usa cialis for men
Great post. I was checking constantly this blog and I’m impressed! Very useful info specifically the last part 🙂 I care for such info much. I was looking for this certain information for a very long time. Thank you and good luck.
online pharmacy weight loss
clozaril 50mg over the counter clozapine without prescription dexamethasone 0,0,5 mg price
sildenafil 25mg buy viagra for sale order lisinopril 2.5mg online
linezolid 600 mg canada zyvox for sale online poker online play
Just what I needed to know thank you for this.
Hi, I just hopped over to your web-site through StumbleUpon. Not somthing I might typically browse, but I liked your views none the less. Thanks for making something worthy of reading through.
I like meeting utile info, this post has got me even more info!
Nice blog. Could someone with little experience do it, and add updates without messing it up? Good information on here, very informative.
buy prilosec 20mg pills help with research paper us blackjack online
My brother suggested I might like this web site. He was entirely right. This post actually made my day. You can not imagine simply how much time I had spent for this info! Thanks!
lopressor 100mg oral order generic atenolol 100mg levitra us
рабочий промокод 1xbet при регистрации. Click Here:👉 https://www.medtronik.ru/images/pages/bonus_kod_na_1xbet_pri_registracii_6500_rubley.html
chat sex live. Click Here:👉 https://porno-sex.cam/
help write my paper blackjack online for real money real casino games
My issues have been very similar, with my family. But, we made some different decisions. It’s complex.
order vardenafil 20mg for sale vardenafil for sale buy medrol 4mg
my future essay writing paper writer buy sildenafil generic
Thanks for your patience and sorry for the inconvenience!
I just added this to my favorites. I truly love reading your posts. Tyvm!
I feel that is among the so much significant info for me. And i am satisfied studying your article. However should commentary on some basic issues, The site style is ideal, the articles is in reality excellent : D. Excellent activity, cheers
order clomid 50mg best casino slot games online casinos real money
albuterol 021
tadalafil order online female viagra pill cheap viagra without prescription
order triamcinolone 10mg online cheap buy aristocort 10mg for sale buy desloratadine 5mg pills
Thanks so much for this, keep up the good work 🙂
If wings are your thing, Tinker Bell’s sexy Halloween costume design is all grown up.
buy dapoxetine 60mg pill buy generic cytotec cheap synthroid tablets
cialis online cialis 20 buy sildenafil 50mg without prescription
This article actually helped me with a report I was doing.
Great blog here! Additionally your website rather a lot up very fast! What host are you the usage of? Can I get your associate link for your host? I desire my website loaded up as fast as yours lol
Pick your Party Dancers and put the names of strippers on the order form. I like to go over something people today seem to think everything is on demand when it comes to ordering strippers and Party bus that’s not the case you might want to book your shows at least 1 to 2 weeks In advance to ensure proper Service and also engage in properly Preparing your friend or loved one’s party in advance this is something that needs to be done. Thank you very much we do appreciate your business we also do accept last minute show.
Great blog right here! You seem to put a significant amount of material on the site rather quickly.
Hello. Great job. I did not expect this on a Wednesday. This is a great story. Thanks!
Thanks for some other great post. Where else may anybody get that kind of information in such an ideal method of writing? I’ve a presentation next week, and I am at the look for such information.
cost orlistat orlistat sale acyclovir buy online
generic tadalafil buy inderal 10mg pills buy clopidogrel 75mg online cheap
Tips and tools you offer are so helpful to agencies in our community.
buy allopurinol online cheap order zetia 10mg for sale order zetia pill
order methotrexate for sale coumadin over the counter buy reglan generic
buy generic motilium flexeril over the counter buy flexeril 15mg generic
Well done! Keep up this quality!
It’s a comprehensive, yet fast read.
While this issue can vexed most people, my thought is that there has to be a middle or common ground that we all can find. I do value that you’ve added pertinent and sound commentary here though. Thank you!
losartan cheap cozaar 50mg without prescription purchase topiramate sale
proscar 5mg online
baclofen 10mg pill tizanidine online order buy toradol without prescription
order imitrex 25mg pills order dutasteride online avodart 0.5mg us
colchicine 0.5mg ca colchicine 0.5mg usa casino bonus
A friend of mine advised this site. And yes. it has some useful pieces of info and I enjoyed scaning it. Therefore i would love to drop you a quick note to express my thank. Take care
buy online doxycycline
buy ranitidine 300mg for sale zantac canada order celebrex 100mg generic
It’s clear you’re passionate about the issues.
play great poker online roulette online with real money best play money poker sites
buy tamsulosin generic zofran order aldactone pills
order cialis 20mg online acillin canada ciprofloxacin 500mg ca
simvastatin 20mg generic oral simvastatin 10mg proscar medication
metronidazole over the counter order augmentin 625mg purchase bactrim pill
motilium where to buy in usa
order fluconazole sale free shipping viagra cheapest viagra
Only a smiling visitor here to share the love (:, btw outstanding style and design .
keflex 250mg cheap cleocin 300mg generic buy erythromycin 500mg pill
We need to build frameworks and funding mechanisms.
buy dexamethasone
order generic cialis purchase tadalafil pills cheap viagra 100mg
sildenafil pills buy tadalafil tablets tadalafil over the counter
I just added your web site to my blogroll, I hope you would look at doing the same.
What made you first develop an interest in this topic?
My brother suggested I might like this web site. He was entirely right. This post actually made my day. You can not imagine simply how much time I had spent for this info! Thanks!
cefuroxime 500mg usa buy ceftin 500mg robaxin cost
buy cafergot
card games online roulette games price cialis
промокод 1хбет. Click Here:👉 http://www.newlcn.com/pages/news/promo_kod_1xbet_na_segodnya_pri_registracii.html
desyrel 100mg ca order aurogra without prescription aurogra 100mg for sale
cheap essay online academic writing services uk ivermectin order online
sildenafil citrate buy lamotrigine 50mg for sale order lamotrigine pills
otc amitriptyline
buy prednisone online purchase amoxicillin for sale order generic amoxicillin 250mg
order sildenafil 100mg without prescription order tadalafil 40mg online order tadalafil online
I dont think I’ve read anything like this before. So good to find somebody with some original thoughts on this subject. cheers for starting this up. This blog is something that is needed on the web, someone with a little originality.
Hello.This article was extremely interesting, particularly since I was searching for thoughts on this subject last couple of days.
Magnificent beat ! Can I be your apprentice? Just kidding!
buspar buy online
I am very happy to look your post. Thanks a lot and i am taking a look ahead to touch you.
buspar 15 mg pill
zithromax online purchase
cheap albendazole
ivermectin 5 mg
black jack pills for ed tadalafil online order
prednisolone cost uk
where can you buy diflucan
cheap zithromax 500mg brand azithromycin order neurontin 600mg pills
celebrex 200 mg over the counter
tretinoin 1 cream price
albendazole buy
generic for keflex
motilium 10mg tablet price
generic flomax for sale
cost of celebrex 100mg
1mg arimidex
buy anafranil canada
can you play poker online money best no deposit free spins order provigil online cheap
ivermectin gel
brand furosemide hydroxychloroquine 200mg canada order generic hydroxychloroquine
where can i get orlistat capsules
antabuse 500 mg
cheap xenical for sale
cialis from india online pharmacy
Thanks for a Interesting item; I enjoyed it very much. Regards Sang Magistrale
This blog post is excellent, probably because of how well the subject was developed. I like some of the comments too though I could prefer we all stay on the subject in order add value to the subject!
What’s Happening i’m new to this, I stumbled upon this I’ve found It positively useful and it has aided me out loads. I hope to contribute & help other users like its aided me. Great job.