Build A Beautiful Machine Learning Web App With Streamlit And Scikit-learn | Python Tutorial

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 193

  • @carljohnsrude6527
    @carljohnsrude6527 4 роки тому +18

    This is absolutely incredible. As someone studying data science, I know nothing about web apps. However, this tutorial and streamlit in general make deploying data web apps look super easy! I would love more videos on streamlit

  • @kccchiu
    @kccchiu 3 роки тому +9

    Best streamlit tutorial I have come across so far. Concise yet informative.
    This is a very good tool to show (and tune) my models with other colleagues.

  • @murtazajabalpurwala8124
    @murtazajabalpurwala8124 3 роки тому

    after watching 10 videos and didnt understand them, your video chopped streamlit to me so easily. Very very nice video

  • @sammagagula3221
    @sammagagula3221 4 роки тому +8

    Thanks, you just made my day...I've been struggling with this for some time...Keep-up the good work

    • @patloeber
      @patloeber  4 роки тому

      Glad it was helpful :)

  • @hungnd589
    @hungnd589 4 місяці тому

    Great tool and beautiful intstructor. Thank you so much Mr.Patrick Loeber

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 роки тому +8

    Excellent video! Be great if we can also see an example of streamlit deployed on Google Cloud, may be with Docker.

    • @patloeber
      @patloeber  4 роки тому

      I will consider this :) thanks for the suggestion

    • @brijpatel237
      @brijpatel237 4 роки тому

      @@patloeber +1, i was thinking the same

    • @Anu_was_here
      @Anu_was_here 3 роки тому

      @@patloeber 😍 did we got one?

  • @divyakarade4378
    @divyakarade4378 3 роки тому

    I have seen this video many times as a beginner. Very well explained with beautiful work. Thanks.

    • @patloeber
      @patloeber  3 роки тому +1

      Glad it was helpful!

  • @Guillermo140273
    @Guillermo140273 2 роки тому

    It is amazing. I am looking for this tools to show the result of our models. you are rock.

  • @ibanguniverse811
    @ibanguniverse811 2 роки тому

    I am lucky finding this Amazing channel, Big thanks !

  • @saitaro
    @saitaro 2 роки тому +1

    What a great tutorial! Patrick is the best, as always.

  • @kulamanisahoo4785
    @kulamanisahoo4785 3 роки тому

    Dude Grand Salute to you.This is THE BEST which i have seen in UA-cam in terms of teaching.Didnt skip the ads Bro.You are just aweosme,..Could you please start a series for Deep learning as well.

  • @MaximumZebra
    @MaximumZebra 3 роки тому +2

    Great content as always!
    I have two questions:
    1. Where are the data sets coming from?
    2. How are you getting the models to train so quickly?? It's awesome, but when I run the models it takes time. I am curious how this is happening so quickly!

    • @patloeber
      @patloeber  3 роки тому +4

      1. the datasets in this video are built-in in scikit-learn, but you can also find all of them here: archive.ics.uci.edu/ml/datasets.php
      2. I edit the videos and cut out or speed up the training part ;)

  • @mayanktripathi4u
    @mayanktripathi4u 4 роки тому +2

    Really a good video... I was struggling with Django and Flask to have the ML models into Web.. with this streamlit life will be easier. Thanks a lot :)

    • @patloeber
      @patloeber  4 роки тому +1

      Thanks! Glad you like it

  • @Robay146
    @Robay146 3 роки тому +2

    Thank you so much for this tutorial! Well explained! 👍🏾

  • @julianschmidt6669
    @julianschmidt6669 3 роки тому +2

    this was actually fun and easy to follow

    • @patloeber
      @patloeber  3 роки тому

      Glad to hear that!

    • @julianschmidt6669
      @julianschmidt6669 3 роки тому

      I actually started working as a student intern at an institute in Berlin. Now I do use streamlit to present results of some data analysis to other colleagues from my team. And it made a good impression so thanks for that 👍👍

  • @mikiallen7733
    @mikiallen7733 2 роки тому +1

    Great tutorial, however in which step shall I add a streaming source datasets instead of the static one which you have presented here ? Best

  • @vikdfr
    @vikdfr 4 роки тому

    you produce the most useful and practical data science videos on youtube! Thank you!

    • @patloeber
      @patloeber  4 роки тому

      Thank you! I'm glad it is helpful :)

  • @clueple
    @clueple 4 роки тому +1

    Great... looking for an easy interface to do analysis and prediction ...and saw this ...
    Big thanks

  • @AladdinPersson
    @AladdinPersson 4 роки тому

    This was a great video, been following you for a while and the work you do is great man 👊

    • @patloeber
      @patloeber  4 роки тому

      Thanks :) glad you like it !

  • @maxameddeeq2081
    @maxameddeeq2081 Рік тому +1

    Great tutorial sir, and if I may ask how do we load a dataset from our computer?

  • @arzwanaris7229
    @arzwanaris7229 4 роки тому

    Nice tutorial man. I have subscribed to your channel. Well done.

  • @kasibantegeoffrey1054
    @kasibantegeoffrey1054 4 роки тому

    I felt in love with streamlit. Have subscribed to your channel.

  • @Zekulz
    @Zekulz 2 роки тому

    Amazing Video I wish I explored your channel earlier, Legit you do amazing work.

  • @ravindrav1895
    @ravindrav1895 2 роки тому

    Awesome video sir, I learnt a lot through your video , thank you for your guidance, make like this contents more so that you a help lot of people like me.

  • @irfansyamsuddin994
    @irfansyamsuddin994 2 роки тому

    this is really helpful mate ... thanks a lot

  • @sitrakaforler8696
    @sitrakaforler8696 2 роки тому

    Great content !!! Thank you for uploading it !

  • @siddharthsharma5065
    @siddharthsharma5065 4 роки тому

    Thank you biddy for this beautiful project tutorial, loved it and loved your channel

  • @randhirsingh5896
    @randhirsingh5896 4 роки тому

    Awesome, this is precisely I was looking for. Many many thanks dear

  • @kammelna
    @kammelna 2 роки тому

    Thank you very much for your valuable efforts, it really helped me a lot.
    Wanna take this advantage to ask if there is any thing we can do to earn money from acquiring ml and dl skills like freelancing? What possible sort of work can we expect? Thanks again!

  • @TeaandTech.
    @TeaandTech. 3 роки тому

    Great Tutorial man. Thanks for the content!!

  • @BillAugersdca
    @BillAugersdca 4 роки тому

    Nicely done, sir. You are really helping me build my Streamlit chops!

  • @flintskeen1828
    @flintskeen1828 4 роки тому

    Thank a ton for this. I am really loving your channel.

  • @luckgutierrez6655
    @luckgutierrez6655 3 роки тому

    Excellent excersice my friend, thanks so much.

  • @muhammadrafiansyah4005
    @muhammadrafiansyah4005 3 роки тому

    wow, thank you, sir. It just what I'm looking for!! keep it up I need more like this

  • @flamboyantperson5936
    @flamboyantperson5936 4 роки тому

    You are great man I always miss your tutorial

  • @ahmedhelal920
    @ahmedhelal920 2 роки тому

    very nice , i really enjoy it ..
    Thanks for sharing ..

  • @yusufaltnsk1368
    @yusufaltnsk1368 3 роки тому

    Thanks for the video. My question is ,do you know any way to use weka library for the same thing ? I want to use weka in my project

  • @bedeamadi9317
    @bedeamadi9317 4 роки тому

    i love the contents you put up on your channel.

  • @thopbgm38
    @thopbgm38 Рік тому

    sir,you didn't do the preprocessing step is it really necessary to do preprocessing for built in datasets

  • @themachineball
    @themachineball 4 роки тому +2

    My first youtube comment! I just want to say "Awesome!"

  • @freedomranch7617
    @freedomranch7617 2 роки тому

    Great vedio but How to import our ml project and if we want our ouput in image form can we do it by importing an image please reply ASAP

  • @declanonyinye9421
    @declanonyinye9421 3 роки тому

    Nice video ... you just save a soul

    • @patloeber
      @patloeber  3 роки тому

      Glad to hear that

    • @declanonyinye9421
      @declanonyinye9421 3 роки тому

      @@patloeber i want to build a web application for fraud detection.. can you assist me?

  • @johnobiebi2075
    @johnobiebi2075 3 роки тому +2

    I followed this exact code and it gave me this error
    rs\User\PycharmProjects\pythonProject13\sogum.py", line 72, in
    acc = accuracy_score(y_test, y_pred)
    NameError: name 'y_test' is not defined

  • @terraflops
    @terraflops 3 роки тому

    1. I have Streamlit working on my laptop (Macbook OS v10.x) and but not my desktop (iMac v11.x) (unknown reasons, no solutions found that work for me)
    2. This was a great video and glad you made it, thank you Patrick!

    • @patloeber
      @patloeber  3 роки тому

      hm this is weird. I have a mac v10.x too. Will test this soon with v11

  • @easylearning29
    @easylearning29 2 роки тому

    I have. Question
    I want to deploy my classification model using radio buttons using streamlit .
    But it is givivg an error : string cannot convert to numeric
    My excel file is in 0 and 1 form . And I want when I fill yes radiobutton.
    it take it as (1) and else (0)
    Please give some suggestions..

  • @MMSakho
    @MMSakho 2 роки тому

    Excellen video!.
    But can you make auto ML which can recieve random dataset (unlimit) & the apps has a fiture to select desired column for training and modeling in it?

  • @irfansyamsuddin4673
    @irfansyamsuddin4673 2 роки тому

    very good tutorial .... how to import ML models from Weka or Rapidminer or Orange into Streamlit ?

  • @keving98
    @keving98 4 роки тому +1

    Good work!
    Can you share how to save the web app file and post it to a url or a website?

    • @patloeber
      @patloeber  4 роки тому

      thanks! I will look into that

  • @thopbgm38
    @thopbgm38 Рік тому

    when i try to fit the training data then i am getting the error like this
    ValueError: Found input variables with inconsistent numbers of samples: [120, 30]
    can anyone solve that one? I am stucked in here

  • @roshankumargupta46
    @roshankumargupta46 4 роки тому

    Thanks for another great tutorial!

    • @patloeber
      @patloeber  4 роки тому

      thanks for watching :)

  • @thomascastri
    @thomascastri 3 роки тому

    Really really great thanks very much !!!

  • @aruns5705
    @aruns5705 4 роки тому

    You are a star...this was too good... :)

  • @ravapurnomo9430
    @ravapurnomo9430 2 роки тому

    something is missing, you forgot to explain to build a conda environment first
    the rest of the video is an amazing tutorial!
    I have subscribed you

  • @BalloonAffirmations
    @BalloonAffirmations 3 роки тому

    Hey! Your explanations are amazing but no matter what streamlit hello just would work at my system, saying that it is not recognizable command. Can you please help!!!

  • @bitrish34
    @bitrish34 3 роки тому

    am getting error when i am tyring to use buttomor map by the ocde st.buttom error is--
    AttributeError: module 'streamlit' has no attribute 'buttom'
    Traceback:
    File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 338, in _run_script
    exec(code, module.__dict__)
    File "C:\Users\HP\Desktop\introstreamlit\first.py", line 43, in
    if st.buttom("Say hello"):
    how can i solve this error please help thanks

  • @pavansatyakrishnav3700
    @pavansatyakrishnav3700 2 роки тому

    I’m getting a TypeError: get_classifier() missing 1 required positional argument: ‘params’

  • @franciscomiranda3239
    @franciscomiranda3239 2 роки тому

    If posible to make a complete desktop Application with python streamlit like c++???

  • @codingpathshala559
    @codingpathshala559 Рік тому

    How to add external dataset, which is not present in SkLearn?

  • @DhruvGandhiBEE
    @DhruvGandhiBEE 4 роки тому

    Great video , it helped a lot!!!! thnx

  • @ineshmaidi7617
    @ineshmaidi7617 3 роки тому

    hi it's amazing ..but i have a probleme that i can't do the link between the streamlit and my code ? how you do that

  • @username42
    @username42 4 роки тому +1

    how can i add my own data to page and use it for analysis in this streamlit?

  • @MdAbdullah1509
    @MdAbdullah1509 3 роки тому

    It shows error after importing sklearn, how to fix this??
    Please help

  • @abdulghani9596
    @abdulghani9596 6 місяців тому

    This is vscode??

  • @md.alamintalukder3261
    @md.alamintalukder3261 3 роки тому

    thanks a lot. which IDE do you use for it?

    • @patloeber
      @patloeber  3 роки тому

      VS Code. I have a tutorial about my editor setup on this channel

  • @Mohamed-Maghrebi
    @Mohamed-Maghrebi 4 роки тому +1

    Please can i do this with adding a new machin library like pyStacknet ?
    it's like Stacking in sklearn ensembl

    • @patloeber
      @patloeber  4 роки тому +1

      I don't know this library but it looks interesting

    • @Mohamed-Maghrebi
      @Mohamed-Maghrebi 4 роки тому

      @@patloeber okey, btw, i did this job, i created a stacking and pystacknet forms and application in steamlit ^^

  • @saurabh1812
    @saurabh1812 3 роки тому

    Sir I want to make web application with machine learning highest( for heart disease) accuracy model using streamlit can you guide me

  • @tejamarneni
    @tejamarneni 4 роки тому

    Thank you for the awesome video

  • @sanketgadge9060
    @sanketgadge9060 4 роки тому

    Awesome! Good stuff

  • @architchaudhary1791
    @architchaudhary1791 4 роки тому

    Today you got a new subscriber

  • @akshatsaxena6404
    @akshatsaxena6404 3 роки тому

    Which editor is this?

  • @tshiamoselemogwe4234
    @tshiamoselemogwe4234 Рік тому

    Good day, What IDE are you using?

  • @abdjanshvamdjsj
    @abdjanshvamdjsj 4 роки тому

    Very cool man. Thanks :)

  • @vivekmajithia5747
    @vivekmajithia5747 3 роки тому

    Would this be able to work if you have an sklearn pipeline instead?

    • @patloeber
      @patloeber  3 роки тому

      absolutely! I always recommend to use a Pipeline for more advanced students :)

    • @vivekmajithia5747
      @vivekmajithia5747 3 роки тому

      @@patloeber Excellent! Would you be able to know a resource where I can learn how to do that? I can't seem to find one with an application yet.

  • @mayanktripathi4u
    @mayanktripathi4u 4 роки тому

    Hi Sir, when I try to install streamlit i get a 'failed to build pyarrow' error. Any ideas on how to fix this?
    I am using windows machine and Python 3.6.3 (python is installed directly on windows... no conda env.)
    Please suggest.

    • @patloeber
      @patloeber  4 роки тому +1

      Did you succeed in the meantime? Considering your newest comment it looks like it works now ?!

    • @mayanktripathi4u
      @mayanktripathi4u 4 роки тому

      @@patloeber Yes, actually i was using Python 3.6 on Windows 32 bit machine, and Streamlit works with 64 bit. So for now i have installed Python 3.6 on Virtual Box with 64bit env.
      and here it worked well.
      Now have to figure out how to use Python with 32 bit and 64 bit on same machine. Or have to go with Virtual Box only.

  • @manishsharma2211
    @manishsharma2211 4 роки тому +1

    Awesome. Subbed

  • @EveningEchoes19
    @EveningEchoes19 2 роки тому

    What is data.data and data.training?

  • @akhil3365
    @akhil3365 3 роки тому

    can you please make a video on how to make a note-taking app in streamlit I tried to implement it but there are so many problems with my version because while deleting a note (row in the data frame) it messes up because the select_box doesn't get updated and sometimes deletes the row which is not intended to:
    def Notes():
    st.markdown('## Notes')
    st.markdown('####')
    df= pd.read_csv('Notes.csv')
    Seal = st.container()
    nt,tb=st.columns(2)
    val=nt.text_area('Edit','Enter Note',height=200)
    if nt.button('Add note'):
    if val not in df['All Notes'].tolist() and val!='Enter Note':
    df.loc[len(df.index)]=val
    df['.']='.'
    df.to_csv('Notes.csv',index=False)
    tb.table(df.rename(columns={'All Notes': 'Highlights'}).set_index('.').sample(2))
    with nt.expander('Delete'):
    delt=st.selectbox('Delete',df['All Notes'])
    if st.button('Delete'):
    df= pd.read_csv('Notes.csv')
    df=df.drop(df[df['All Notes']==delt].index)
    df.to_csv('Notes.csv',index=False)
    with Seal.expander('See All'):
    st.table(df.set_index('.'))
    Notes()
    this is my implementation.

  • @Mayo020
    @Mayo020 3 роки тому

    Thanks man

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 роки тому

    Can you also do Streamlit examples, like training a deep learning model and then use the model with user inputs for predictions? I noticed that the model gets trained again, each time you modify the input parameter, at least, when I tried.

    • @Mavengence27
      @Mavengence27 4 роки тому

      I assume it'd be better if you save your deeplearning model, then you create a button which fires the model load and the model predict and then you write the result with streamlit.

    • @patloeber
      @patloeber  4 роки тому

      Yes that's exactly the approach :) I plan to do one with streamlit and pytorch in the future. But basically it's the same approach as in my pytorch+Flask tutorial

  • @michelpereira1843
    @michelpereira1843 4 роки тому

    Thank you man, for this project, i try to install streamlit but it give error?
    i am using pycharm

  • @Mohamed-Maghrebi
    @Mohamed-Maghrebi 4 роки тому

    Thank you man, for this beautiful project and explain it, here is plus one subrscibre, wich to watch all your beautiful videos

  • @dakshauchagaonkar5150
    @dakshauchagaonkar5150 3 роки тому

    Hi loved your video so my query is there a way where we could add a python function in html file like the thing is I am trying to make a home page with html and I want to call my python function developed using streamlit which contains the model loading and execution part by clicking on a button created using html?

  • @nitishsonkar8947
    @nitishsonkar8947 2 роки тому

    thank you

  • @gauravvan
    @gauravvan 2 роки тому

    You teach great, no one can teach better than you, but that voice of yours, I was getting bored and feeling sleep due to your voice, they say if there are 40 students and 1 teacher in a class, a good teacher's voice will be louder and more energetic than all those 40 combined.

  • @saurabhjain507
    @saurabhjain507 4 роки тому

    Just came here to say you are awesome. Thank you so much for putting up this video. Turned on the notifications so that I don't miss your videos. 😉

    • @patloeber
      @patloeber  4 роки тому

      Thanks for supporting me :)

  • @gsravan7058
    @gsravan7058 4 роки тому

    Which tool we have to install?

  • @zappa8155
    @zappa8155 3 роки тому

    Very helpful

  • @pranavmaheshwari8352
    @pranavmaheshwari8352 3 роки тому

    Does Streamlit not work with jupyter notebook.?

    • @patloeber
      @patloeber  3 роки тому

      no you need a normal python script to run streamlit

    • @pranavmaheshwari8352
      @pranavmaheshwari8352 3 роки тому

      @@patloeber ok thanks man.
      BTW great content.
      Thank you.👍

    • @patloeber
      @patloeber  3 роки тому

      @@pranavmaheshwari8352 thanks :)

  • @xaynlaa5947
    @xaynlaa5947 3 роки тому

    Which IDE do you use?

  • @khalilk3189
    @khalilk3189 3 роки тому

    great tutorial

  • @username42
    @username42 4 роки тому

    how to add automl for hyperparameter optimization here ?

  • @umerusman7720
    @umerusman7720 4 роки тому

    i wish i had words to thank you .....

  • @johnanih56
    @johnanih56 4 роки тому

    Is it possible to connect your database with streamlit? We would appreciate more videos with streamlit

    • @patloeber
      @patloeber  4 роки тому +1

      I try to do another tutorial on Streamlit in the future!

    • @nerazha7825
      @nerazha7825 4 роки тому

      Which data we used with project. Cz i didn't understand where the dataset is loaded or its just inbuilt

  • @mp6557
    @mp6557 3 роки тому

    Thanks alotttt!!!

  • @sumithhh9379
    @sumithhh9379 4 роки тому

    Nailed it.

  • @amitasingh4583
    @amitasingh4583 3 роки тому

    So basically this video would help me not getting into flask. Reply if I am wrong

    • @patloeber
      @patloeber  3 роки тому

      yep it's different than Flask

  • @sotirigeorgiou3205
    @sotirigeorgiou3205 4 роки тому

    Brilliant!

  • @johnanih56
    @johnanih56 4 роки тому

    Wawu! I love it!

  • @salikmalik7631
    @salikmalik7631 3 роки тому

    how to setup streamlit that entire script don't run again?

    • @patloeber
      @patloeber  3 роки тому

      you need to put your code into functions and apply st.cache for those functions

  • @carl9739
    @carl9739 2 роки тому

    GOod content