After a friend told me about the Streamlit library, I instantly started working on multiple data science related projects which not only increased my abilities in data science, but made me more adept with the use of programming languages such as Python, MATLAB and HTML. At the time of writing this article, users can only deploy 3 web apps on Streamlit from a particular account. But, if you request them you can potentially also deploy more web apps.
So coming onto this project, it’s similar to the Iris Classification and Prediction Web App and this dataset is used as an alternative to the classic Iris dataset given by R.A. Fisher. It’s a penguin classification and prediction web app. It successfully classifies and predicts the species of Palmer penguin based upon a number of user input features such as bill length, bill depth, body mass, flipper length etc. The prediction is also based upon the gender of the penguin and the island group (Bisoce, Dream and Torgersen) where it is located.
Just like most of my other web apps, this has a simple design and structure to improve UI/UX for user convenience. The sidebar sliders help in changing the values of the parameters for determination of the result. It also displays the prediction probability along with the predicted output of the Palmer penguin species.
This web app also displays the image of the predicted species. We have 3 different images for all three species which are displayed depending upon the predicted species based upon user input of parameter values.
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 majorly coded in python.
This web app helped me to improve my experience in Machine Learning and definitely helped in my future projects. Feel free to add onto this project and don’t hesitate to drop by any suggestions. Hope you enjoy the app!
Link of the app: https://share.streamlit.io/skillocity/penguin/main/prediction.py
About the dataset: This dataset was created by Dr. Kristen Gorman and members of the Palmer Station, Antarctica (LTER). Palmer is one of the three US Antarctic Stations governed by the Antarctic Treaty of 1959. The Palmer Station is an interdisciplinary polar marine research program established in 1990.
The dataset was uploaded by Allison Horst and it is available by CC-0 license in accordance with the Palmer Station LTER Data Policy and the LTER Data Access Policy for Type 1 data. The dataset contains data for 344 penguins. There are 3 diffrent species of penguins in this dataset, collected from 3 islands in the Palmer Archipelago, Antarctica.
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
import numpy as np
import pickle
from sklearn.ensemble import RandomForestClassifier
from PIL import Image,ImageFilter,ImageEnhance
import os
After this I have included a slight description of the app as a string which includes the dataset resource and the developers. Next we need to define our input features i.e the parameters of our dataset, In this case, the parameters are Island, Sex, Bill Length, Bill Depth, Flipper length and body mass.
def user_input_features():
island = st.sidebar.selectbox('Island',('Biscoe','Dream','Torgersen'))
sex = st.sidebar.selectbox('Sex',('male','female'))
bill_length_mm = st.sidebar.slider('Bill length (mm)', 32.1,59.6,43.9)
bill_depth_mm = st.sidebar.slider('Bill depth (mm)', 13.1,21.5,17.2)
flipper_length_mm = st.sidebar.slider('Flipper length (mm)', 172.0,231.0,201.0)
body_mass_g = st.sidebar.slider('Body mass (g)', 2700.0,6300.0,4207.0)
data = {'island': island,
'bill_length_mm': bill_length_mm,
'bill_depth_mm': bill_depth_mm,
'flipper_length_mm': flipper_length_mm,
'body_mass_g': body_mass_g,
'sex': sex}
features = pd.DataFrame(data, index=[0])
return features
input_df = user_input_features()
st.subheader('User Input parameters')
st.write(input_df)
Once we’ve done this, we need to feed in the dataset and separate the column as it has to predict that itself. Then we need to encode the sex and island column to basically easily manipulate the data using pd.get_dummies , after which it removes this dummy data from the dataset. Next it takes user inputs , pickles them, and finally runs it’s algorithm to find result
penguins_raw = pd.read_csv('penguins_cleaned.csv')
penguins = penguins_raw.drop(columns=['species'])
df = pd.concat([input_df,penguins],axis=0)
encode = ['sex','island']
for col in encode:
dummy = pd.get_dummies(df[col], prefix=col)
df = pd.concat([df,dummy], axis=1)
del df[col]
df = df[:1] # Selects only the first row (the user input data)
load_clf = pickle.load(open('penguins_clf.pkl', 'rb'))
prediction = load_clf.predict(df)
prediction_proba = load_clf.predict_proba(df)
After this we just need to print the predicted output and the prediction probability.
st.subheader('Prediction')
penguins_species = np.array(['Adelie','Chinstrap','Gentoo'])
st.write(penguins_species[prediction])
st.subheader('Prediction Probability')
st.write(prediction_proba)
I’ve also included a pretty cool functionality into the app, apart from predicting the penguin species, it also displays an image of the predicted species. To do this, you just need to download some open source images of the three penguin species and save them.
@st.cache
def load_image(img):
im =Image.open(os.path.join(img))
return im
#images
if penguins_species[prediction] == 'Chinstrap':
st.text("Showing Chinstrap Penguin")
st.image(load_image('chinstrap.jpg'))
elif penguins_species[prediction] == 'Gentoo':
st.text("Showing Gentoo Penguin")
st.image(load_image('gentoo.jpg'))
elif penguins_species[prediction] == 'Adelie':
st.text("Showing Adelie Penguin")
st.image(load_image('adelie.jpg'))
To cap up the web app, I’ve linked this article into the app and have also included the logo of Team Skillocity. I have given due credits to the researchers of this dataset and have cited the original paper. So that’s it for this app and I’ll be back soon with another cool application of Machine Learning.
Hi, I'm currently taking some bioinformatics courses. Any idea where I can learn some ML/Data Science ?
Hi, yeah I've worked on a few bioinformatics projects. You can check out Data Professor (Chanin Nanatasenamat, PhD Mahidol University) on YouTube. He has tutorials for fairly simple bioweb apps deployed on streamlit. You can also check out bioinformatics guy on YouTube. All the best !
Thanks !
From where did you get this and the other datasets ?
Hi, this is a very commonly used dataset and is often used as an alternative to the Iris Classification dataset. It's uploaded by Allison Horst on her website. For the other datasets, you can check the UC Irvine Machine Learning Repository or Kaggle. All the best!
The Centre for Cold-Formed Material Set ups (CCFSS) was established at the University of Missouri-Rolla (now Missouri College of Science and
Engineering) in May 1990 under an initial grant received from the Us Metal and Metal Start.
Over the years, the Center’s sponsorship possesses produced to contain:
Cold-Formed Metal Engineers Company, Metallic Construction Relationship, Rack Suppliers
Company, Simpson Strong-Tie, Steel Deck Start and Steel Framing Market Association. In 2000, the Middle seemed to be renamed for its Founding Director, Dr.
Wei-Wen Yu.
The Centre is dedicated to furthering the field of cold-formed steel and
hosts continuing education events such as the Wei-Wen Yu
Essential Niche Seminar on Cold-Formed Material Structures, which has taken place every other year
since 1971. Top researchers, planners, companies and educators who have interested in analysis, design,
make and the employ of cold-formed metal members get at this conference to found illustrated chats of their latest conclusions.
👉 Alana He wants to talk frankly with you and show you something, you will like it. Click Here:👉 http://bit.do/fVzCK
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
Free. Sign up to receive $100, Trade to receive $5500. Click Here:👉 https://millionairego.page.link/free
levofloxacin 250mg pills order levaquin 500mg online cheap
cost avodart zofran online buy generic zofran 8mg
purchase spironolactone sale order diflucan sale fluconazole medication
ampicillin order bactrim 480mg cheap erythromycin drug
cost sildenafil 100mg brand careprost robaxin online order
suhagra 50mg pill estrace 2mg for sale oral estradiol 1mg
buy lamictal 50mg generic order tretinoin generic order retin cream
tadalafil price order tadalafil 10mg pills voltaren 50mg without prescription
buy isotretinoin online order amoxil 1000mg pills zithromax online buy
buy generic indocin 75mg buy trimox without prescription trimox 250mg price
order cialis 10mg sale medications online sildenafil 100mg us
anastrozole 1 mg usa anastrozole drug viagra over the counter
acheter cialis en ligne cialis 40mg generique pas cher viagra 100mg generique pas cher
order prednisone 40mg online cheap buy generic ed pills online purchasing viagra on the internet
cialis 10mg generika sildenafil 100mg für frauen sildenafil 200mg für männer
order accutane 10mg without prescription buy stromectol 12mg pills stromectol online pharmacy
provigil 200mg canada order diamox 250 mg generic oral acetazolamide 250mg
doxycycline price furosemide 100mg price order furosemide 40mg for sale
generic altace buy avapro 300mg online purchase astelin
order clonidine 0.1 mg without prescription buy minocin 100mg buy spiriva
purchase buspirone pills buspar drug purchase oxybutynin
order hytrin online order hytrin 5mg sale sulfasalazine 500mg cheap
order fosamax 70mg pill buy motrin 400mg sale pepcid online
olmesartan 10mg drug order calan order acetazolamide 250 mg online cheap
order tacrolimus without prescription buy labetalol 100mg generic ursodiol over the counter
imdur tablet buy lanoxin generic buy micardis 80mg without prescription
buy zyban quetiapine 100mg tablet seroquel online order
molnupiravir online order purchase naprosyn generic generic lansoprazole 30mg
buy sertraline 50mg for sale order kamagra 200mg sale viagra online buy
порно чат. Click Here:👉 http://rt.livepornosexchat.com/
buy imuran 100 mcg sale order imuran 100mcg online cheap generic viagra 100mg
cheap cialis for sale Cialis fast delivery viagra 100mg uk
melbet промокод при регистрации. Click Here:👉 http://lynks.ru/geshi/php/?melbet_promokod_pri_registracii_2020.html
tadalafil 10mg over the counter purchase tadalafil buy symmetrel 100 mg for sale
naltrexone price brand naltrexone buy aripiprazole generic
dapsone ca buy avlosulfon 100mg for sale perindopril 4mg drug
provera 5mg uk buy provera 10mg pill periactin oral
order modafinil 200mg pills canadian pharmacy stromectol for human
cheap luvox 100mg cost luvox 50mg glipizide drug
levothyroxine synthroid
medication canadian pharmacy
accutane 40mg generic order isotretinoin online cheap buy deltasone 10mg pill
order nootropil without prescription order viagra 100mg viagra 50mg without prescription
ventolin pharmacy uk
buy zithromax pills prednisolone 40mg ca buy neurontin 800mg generic
tadalafil 10mg uk cialis buy online sildenafil overnight
happy family store
lasix 100mg oral order generic lasix 40mg order hydroxychloroquine 200mg pill
how much is cialis order tadalafil 40mg generic purchase anafranil online
chloroquine 250mg us order chloroquine generic oral baricitinib 2mg
itraconazole drug prometrium 200mg pill tindamax without prescription
Hi, do have a e-newsletter? In the event you don’t definately should get on that piece…this web site is pure gold!
Clear, concise and easy to access.
Nice blog here! Also your web site loads up very fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol
glycomet 500mg over the counter order generic atorvastatin 10mg cialis sale
olanzapine 10mg over the counter valsartan for sale online diovan 160mg pill
cheap diflucan online
buy amlodipine 10mg without prescription order tadalafil 20mg online cheap cialis 20mg usa
clozapine 50mg generic buy decadron 0,5 mg pill dexamethasone 0,0,5 mg ca
female viagra sildenafil buy lisinopril 2.5mg buy lisinopril 5mg
Glad to be one of many visitants on this amazing site : D.
Amazing article, cheers, I will bookmark you now.
Hello.This article was extremely interesting, particularly since I was searching for thoughts on this subject last couple of days.
purchase prilosec online blackjack online money slots free online
fantastic internet site, I could definitely go to your web page once more…acquired some really nice info.
zyvox cheap generic linezolid 600mg online casino real money
cheap metoprolol 100mg order vardenafil 10mg for sale brand levitra
write research paper free online slots poker online games
Woah this is just an insane amount of information, must of taken ages to compile so thanx so much for just sharing it with all of us. If your ever in any need of related information, just check out my own site!
pharmacy mall
vardenafil 10mg for sale buy pregabalin 150mg medrol cost in usa
Nice read, I just passed this onto a colleague who was doing some research on that. And he just bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch!
I wish I could craft such articles as this. Thank you very much.
Thanks for another great post. Where else may anybody get that type of info in such an ideal way of writing? I have a presentation next week, and I’m at the search for such information.
buy nothing day essay viagra mail order us buy viagra 100mg pill
albendazole online
clomid 50mg tablet ventolin inhalator sale roulette online
tadalafil 40mg tablet order tadalafil 5mg online viagra 100mg generic
triamcinolone 10mg oral order aristocort pills clarinex online
have already been reading ur blog for a couple of days. really enjoy what you posted. btw i will be doing a report about this topic. do you happen to know any great websites or forums that I can find out more? thanks a lot.
That means you’ll perceive some supplemental features and from access to additional channels where you can pick up visibility, without having to put to rights nous of some confused, manual migration process. https://googlec5.com
cost priligy 90mg buy synthroid sale cheap synthroid generic
cialis 20 mg price purchase cialis online buy sildenafil 100mg for sale
I will share you blog with my sis.
Hi welcome to our website Thank you for taking interest in our site go to the top right corner and you will see the 3 bars click on those bars. It will show you a menu of things you can order on our website the next thing. Pick your Party Dancers and put the names of The Best Female Party Dancers put On epic Bachelor Party show for Your best Man Bachelor Party Event. And We Love fraternity party we also do divorce parties and a good party with Party waitresses or just rent party bus with 2 Party dancers for Any Occasion.
It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I want to suggest you some interesting things or suggestions. Perhaps you can write next articles referring to this article. I wish to read more things about it!
That is really fascinating, You’re an excessively skilled blogger. I’ve joined your rss feed and look forward to in the hunt for extra of your magnificent post. Additionally, I’ve shared your website in my social networks!
I was referred to this web site by my cousin. I’m not sure who has written this post, but you’ve really identified my problem. You’re wonderful! Thanks!
Thanks for discussing the issues and covering them in a well written format.
canadian pharmacy world https://canadianpharmacy.icu/# canada discount pharmacy
xenical buy online diltiazem us order acyclovir 400mg generic
order tadalafil 20mg cialis us buy plavix 150mg pills
Good site! I truly love how it is easy on my eyes it is. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your RSS which may do the trick? Have a great day!
order allopurinol pills order zetia ezetimibe brand
order methotrexate online coumadin pills buy generic reglan 20mg
domperidone medication order domperidone 10mg pills purchase cyclobenzaprine online
What i discover troublesome is to find a weblog that may capture me for a minute however your blog is different. Bravo.
I’m partial to blogs and i actually respect your content. The article has actually peaks my interest. I am going to bookmark your site and preserve checking for new information.
It’s clear you’re passionate about the issues.
What made you first develop an interest in this topic?
1 dating sites match dating site
losartan 50mg pill purchase cozaar order topamax 200mg pills
best site dating free dating sites for men
https://datingonline1st.shop/# christian dating
baclofen usa purchase toradol generic buy toradol 10mg
vip dating now online dating plus 50
https://datingonline1st.com/# dating personal ads
free dating sites without registering dating online sites
buy imitrex online order sumatriptan online cheap order avodart 0.5mg
tretinoin 0.05 cream india
Nice post.Very useful info specifically the last part 🙂 Thank you and good luck.
The post is absolutely fantastic! Lots of great info and inspiration, both of which we all need! Also like to admire the time and effort you put into your website and detailed info you offer! I will bookmark your website!
meet girls for free sex dating sights
https://datingonline1st.com/# date free site
buy generic colchicine free poker online slots online
coursework only degree coursework king’s college quantitative coursework coursework report
I like this weblog very much so much great info .
arthritis medicine for dogs over the counter over the counter insulin
https://drugsoverthecounter.shop/# over the counter medicine
best over the counter teeth whitening best sleeping pills over the counter
order generic ranitidine 150mg buy celebrex 200mg without prescription celecoxib 200mg pills
what is the best over-the-counter anti-inflammatory for dogs best over the counter gas and bloating medicine
retin a .05 cream
online blackjack game casino moons online casino live blackjack
best over the counter yeast infection treatment best over the counter medicine for sore throat
https://drugsoverthecounter.shop/# flonase over the counter
tamsulosin 0.2mg without prescription ondansetron medication aldactone 100mg brand
best over the counter toenail fungus medicine best over the counter yeast infection treatment
You are a very smart person! 🙂
tadalafil 5mg tablet buy cipro 1000mg generic cipro 500mg price
over the counter anti nausea best over the counter cold medicine
uti treatment over the counter best over the counter hair color
simvastatin sale propecia cost order proscar 1mg online
over the counter anxiety meds muscle relaxer over the counter
metronidazole pills metronidazole 200mg oral bactrim 480mg price
over the counter antihistamine hydroxychloroquine over the counter
Thanks for this post, it is soo useful for me! Thanks! https://linkbuilder.info
sildalis 120 mg order usa pharmacy
coursework columbia coursework plug coursework
writer coursework in korean
coursework example coursework jamii forum coursework
for phd coursework questions
Having an interior designer is incredibly important since they have the knowledge and experience to help transform a space into something functional and aesthetically pleasing. Interior designers know how to balance colour, texture, furniture, and other design elements to create the desired look. They are creative problem solvers and can work their magic in any space from small closets to large outdoor decks. With an expert’s eye for detail, your own ideas can be refined and executed perfectly, elevating your space both functionally and aesthetically. Thank you for providing this content and helping us recognize the importance of hiring an interior designer!
Thanks for your patience and sorry for the inconvenience!
buy fluconazole online cheap real viagra pharmacy prescription purchase viagra generic
creative writing english coursework coursework in area of expertise courseworks help coursework plan example
coursework bank coursework que es coursework
program coursework advantages and disadvantages
coursework writer uk coursework title custom coursework writing service coursework degree
strongest over the counter painkiller best over the counter nausea medicine
cephalexin 250mg for sale clindamycin price erythromycin pill
over the counter muscle relaxers cvs rightsourcerx over the counter
https://over-the-counter-drug.com/# over the counter antifungal cream
tizanidine 4mg tablets online
coursework vs dissertation coursework guidelines 9396 do my coursework for me https://coursework-expert.com/
qmul coursework extension coursework help university coursework
uk do my coursework online
This is really interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your website in my social networks!
atomoxetine
best sleep aid over the counter yeast infection treatment over the counter
buy tadalafil 20mg for sale sildenafil pills 25mg viagra next day
arthritis medicine for dogs over the counter over the counter birth control
viagra 50mg tablet sildenafil 100mg uk buy tadalafil 5mg without prescription
top 10 pharmacies in india
https://over-the-counter-drug.com/# strongest over the counter sleep aid
Very often I go to see this blog. It very much is pleasant to me. Thanks the author
You are one talented writer thank you for the post.
Great resources and tips for families here.
Its wonderful as your other blog posts : D, regards for putting up.
I imagine so. Very good stuff, I agree totally.
buy generic provigil online
amoxicillin over the counter is viagra over the counter
ceftin 500mg sale methocarbamol online order order robaxin 500mg generic
over the counter heartburn medicine silvadene cream over the counter
https://over-the-counter-drug.com/# best over the counter cough medicine
blackjack online betting online casino gambling otc cialis
best over the counter diet pills best over the counter gas and bloating medicine
ivermectin 250ml
tamiflu over the counter over the counter diuretic
trazodone 100mg ca buy trazodone 50mg order aurogra
essays online to buy writing dissertation service stromectol south africa
order sildalis sale order lamictal generic buy lamictal for sale
https://stromectol.science/# ivermectin 24 mg
keflex price in india
buy malegra from india
zovirax over the counter
acyclovir price
buy prednisone 5mg online cheap order isotretinoin 20mg online cheap amoxicillin 500mg cost
8 mg flomax
There most be a solution for this problem, some people think there will be now solutions, but i think there wil be one.
Our community leaders need to read this, and look at developing some of your recommendations.
viagra for men over 50 buy sildenafil 100mg pills buy tadalafil 40mg online
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again soon!
I’m impressed, I need to say. Really rarely do I encounter a blog that’s both educational and entertaining, and let me tell you, you have hit the nail on the head.
https://stromectol.science/# minocycline hcl
albuterol for sale
play poker online free rivers casino oral tadalafil
cialis mexico online
buy zithromax 250mg for sale buy zithromax 250mg generic neurontin 800mg brand
where can i buy toradol uk
lasix no prescription
generic lyrica for sale
Easily, the post is really the greatest on this laudable topic. I concur with your conclusions and will thirstily look forward to your future updates. Saying thank will not just be sufficient, for the wonderful c lucidity in your writing. I will instantly grab your rss feed to stay privy of any updates. Solid work and much success in your business enterprise!
combivent generic price
doubleu casino online casino generic provigil 200mg purchase provigil generic
buspirone pill
atarax
viagra online from mexico
furosemide 40mg over the counter cheap hydroxychloroquine order plaquenil 200mg generic
cost of orlistat
Some are medicines that help people when doctors prescribe. Prescription Drug Information, Interactions & Side.
https://stromectolst.com/# ivermectin 10 ml
Best and news about drug. Read information now.
sildalis online
Actual trends of drug. Some are medicines that help people when doctors prescribe.
https://stromectolst.com/# ivermectin generic name
Everything information about medication. safe and effective drugs are available.
Definitive journal of drugs and therapeutics. Drugs information sheet.
ivermectin iv
Everything about medicine. safe and effective drugs are available.
anafranil ocd
buy toradol
Greetings, have tried to subscribe to this websites rss feed but I am having a bit of a problem. Can anyone kindly tell me what to do?’
Read here. Get information now.
https://stromectolst.com/# stromectol generic name
Get information now. What side effects can this medication cause?
I like this weblog very much so much great info .
prozac australia
lasix 40
retin a cream mexico