Тёмный

Building a Machine Learning API in 15 Minutes | Coding Challenge 

Nicholas Renotte
Подписаться 266 тыс.
Просмотров 122 тыс.
50% 1

What's happening guys, welcome to the first episode of CodeThat!
In this ep I try to build a machine learning API at freaking light speed using Python, FastAPI and Scikit-Learn AND DEPLOY it using Heroku. Hope y'all enjoy it.
Oh, and don't forget to connect with me!
LinkedIn: bit.ly/324Epgo
Facebook: bit.ly/3mB1sZD
GitHub: bit.ly/3mDJllD
Patreon: bit.ly/2OCn3UW
Join the Discussion on Discord: bit.ly/3dQiZsV
Happy coding!
Nick
P.s. Let me know how you go and drop a comment if you need a hand!
#machinelearning #api #fastapi

Наука

Опубликовано:

 

9 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 226   
@joely2k83
@joely2k83 Год назад
really enjoy your series, among all other AI and ML channels. Yours is direct to the point, hands on, transparent, and humble. Try it on spot and even there is errors or challenges, you face it together with your audiences. Huge fan here!
@masteronepiece6559
@masteronepiece6559 Год назад
Without explaining and talking, and with zen mode on, you can finish it in 5 minutes. Great work as always.
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a million @MasterOne Piece! Didn’t want to subtract from passing on some knowledge though 😅
@classicemmaeasy2292
@classicemmaeasy2292 Месяц назад
😂 awesome
@suyashdongre
@suyashdongre Год назад
Awesome video man, this also helped me get the idea on how to use my model through api. Thanks for helping me in my project. I was watching any tutorials and was not getting them. I just randomly played your video and the requirement which I had was exactly fulfilled by you. Thanks again man! 👍
@anthonylwalker
@anthonylwalker Год назад
Was literally just putting writing APIs next on my learning list! Always right there when I need you!
@NicholasRenotte
@NicholasRenotte Год назад
YESSS, go getem!
@nawfalourimech8974
@nawfalourimech8974 Год назад
Discovered your channel last week and about to finish my first DL project ! Thank you so much, I have been trying to find good tutorials for roughly a year 😅
@NicholasRenotte
@NicholasRenotte Год назад
Awesome work @Nawfal, congrats on your first DL project!!
@MichaBurdzy-vb4cg
@MichaBurdzy-vb4cg 8 месяцев назад
Thank you Nicholas, this is the best ML content I've seen, including paid courses on various platforms. What you do is really amazing, thank you!
@sneakywill8902
@sneakywill8902 Год назад
I just started watching and the quality of the whole channel is crazy; amazing information but also great editing and video performance! Fun and interesting to watch
@sneakywill8902
@sneakywill8902 Год назад
I love the music :)
@FC-BS
@FC-BS Год назад
What a bummer, you were so close. The space through you off. Great work my man
@NicholasRenotte
@NicholasRenotte Год назад
Sup team, code and model from the video can be found here: github.com/nicknochnack/CodeThat-FastML
@abhisai594
@abhisai594 Год назад
love your content bro. thanks for sharing as ive been learning a lot from your videos.
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a million @Abhi!!
@FDasdana
@FDasdana 5 месяцев назад
Great content. I found the tension that occurs when the pickle is not loaded to be very similar to what I experience during project deadlines 😅😅. It is a video that perfectly summarizes not only the fastapi application but also the development process 😄
@philm.pappas326
@philm.pappas326 Год назад
I am new to your channel Nicholas and very happy that I found you! Keep up the good work!
@NicholasRenotte
@NicholasRenotte Год назад
Welcome to the team @Phil!
@sushantgautam2264
@sushantgautam2264 Год назад
Love this master piece ❤️. Please make more.
@NicholasRenotte
@NicholasRenotte Год назад
You got it!
@ling6701
@ling6701 Год назад
haha (6:44 left), nice idea, love to see live coding, with bug happening live, just like in real life. Thank you, subscribed. Just a space makes a difference, haha, made my day.
@maxime5882
@maxime5882 Год назад
I prefer short video like this one. I'm a french student in IA, and it's very good to see how you work and what do you use. This is one of my most profitable subscription. Thanks !
@NicholasRenotte
@NicholasRenotte Год назад
Yeah I'm with you on this @Maxime, I think i'll still do long videos occasionally but I'm focusing on shorter, punchier content in the interim
@JonCookeBridge
@JonCookeBridge Год назад
Fun to watch. Could you do a session on what dev tools you use. Postman? Visual Code? Basic nuts and bolts on how everything hangs together.
@NicholasRenotte
@NicholasRenotte Год назад
You got it!!
@richprice3748
@richprice3748 14 часов назад
@@NicholasRenotte Hi, Yes, when you switched over to VS Code, I was still stuck back on the older setup you had shown us and which I got running during the image classification of happy and sad -- that was amazing when I got it working and I can still install everything like that from scratch. I now am trying to do same with VS Code and it would be helpful to know your setup now with the various extensions and how you use it with environments now more easily. I am assuming most pros now using the VS Code and made similar transitions.
@davidvaldez6132
@davidvaldez6132 Год назад
Excellent video !!!, that was amazing
@HyperDogeGaming
@HyperDogeGaming Год назад
Really awesome content. Now I feel like I wanna do each of those challenges myself! Dunno where I’ll find the time though, might need to put in some of my vacation time into it 😅
@NicholasRenotte
@NicholasRenotte Год назад
YESSS! Go getem, I'm trying to do a new one each week atm.
@priyanshu4016
@priyanshu4016 Год назад
great 😀,pretty excited in last comple of minutes .
@user-ie5pe6yd1h
@user-ie5pe6yd1h 2 месяца назад
Thank You for sharing this knowledge with us, when i found your model pickle I need to test it in my machine
@leonardmutambanengwe7104
@leonardmutambanengwe7104 Год назад
fun to watch, looking forward to more of the videos
@NicholasRenotte
@NicholasRenotte Год назад
Thanks @Leonard, plenty more to come!
@brunomiranda1988
@brunomiranda1988 Год назад
Amazing content as always!
@NicholasRenotte
@NicholasRenotte Год назад
Cheers @Bruno!
@ishangala7964
@ishangala7964 Год назад
Definitely a fun to watch challenge!!
@NicholasRenotte
@NicholasRenotte Год назад
Cheers @Ishan!
@Rohitsharma-yu3fz
@Rohitsharma-yu3fz Год назад
Really it was super insightful thank you so much for helping us out.
@soumayagabsi5582
@soumayagabsi5582 Год назад
Fun to watch, I like short videos like this👍
@Arya-pt1nf
@Arya-pt1nf Год назад
I'm not sure if I missed it but would love to see a video on how you created the ML model through scikit-learn that you used in this video, awesome stuff!
@Jay-lo6kz
@Jay-lo6kz Год назад
That's hell of a rush, you did great 😃 (well badluck that you missed it by seconds) So much of learning in one video Thanks nick
@NicholasRenotte
@NicholasRenotte Год назад
Anytime @Muni, glad you enjoyed it!!
@MMaquite
@MMaquite Год назад
i've always learn a lot thanks to your content
@NicholasRenotte
@NicholasRenotte Год назад
Yess, love to hear this!
@felipezuniga6316
@felipezuniga6316 Год назад
Amazing video man, i just found your youtube channel and your content its exactly what i was looking for... by any chance do you have a video like this where you explain in detail every step? ps: new follower, keep the good work greetings from chile
@juliansteden2980
@juliansteden2980 Год назад
Awesome video! Personally, I prefer slightly longer and more in-depth videos with more explanations. This speed-coding stresses me rather^^ Nevertheless, great what you get implemented in the short time! Have a look at the VS-Code extension REST Client. I find it great for simple queries and you can stay completely in VS code which I find more comfortable as a viewer. Also, you have your queries right next to the source code which I sometimes find very attractive.
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a million Julian! Will take a look at the extension, agree, would prefer to stay in vs code over jumping back and forth
@reniyunita9820
@reniyunita9820 Год назад
i really very veryyy love your content😍😭😭
@mehdismaeili3743
@mehdismaeili3743 Год назад
Excellent, thanks.
@chrisogonas
@chrisogonas Год назад
Nice one! Thanks
@pagla2222
@pagla2222 Год назад
It was a wonderful thing that I didn't know for a long time I was posting such videos
@chrisjarvis509
@chrisjarvis509 Год назад
Great video!
@fizipcfx
@fizipcfx Год назад
TIL pickle is a built-in module. This was intense. I hope you can make a lot of these.
@NicholasRenotte
@NicholasRenotte Год назад
Yep me too apparently 😅 I definitely want to, had a ton of fun making it.
@russelldicken9930
@russelldicken9930 Год назад
Brilliant work Nick. I still think 30 mins is right for this task!
@NicholasRenotte
@NicholasRenotte Год назад
Could've definitely done a little more in 30 minutes, handling multiple scoring requests, auth etc!
@user-kt8nc4xd1u
@user-kt8nc4xd1u Год назад
Hi, Nico. Really nice video. Can you also give tutorial videos on deployment on mobile device such as andriod or ios? It would also be great if you create another video on deployment on windows machine? Basically, deployment on non-cloud platforms
@luis96xd
@luis96xd Год назад
Congratulations for this video! It motivated me to make my own API, we all feel like you when make a ML project💯👏 I'm really glad you finished with all these constraints and I learned a lot, FastAPI it's super easy, the code is understandable Yes, I was worried when the pickle error showed, but it worked!!! Cool! Great video and thanks for sharing the knowledge Great job! 😄👍
@NicholasRenotte
@NicholasRenotte Год назад
Heya glad you enjoyed it @Luis!
@kushagrgoyal9614
@kushagrgoyal9614 Год назад
Love the video as always! Could you do a video on Fastapi and how to use it please??
@NicholasRenotte
@NicholasRenotte Год назад
You got it!
@muhammadshahzaib9122
@muhammadshahzaib9122 Год назад
IDK what you are doing, but I like the effort you put into it :)
@NicholasRenotte
@NicholasRenotte Год назад
😊 thanks a mil for checking it out @Muhammad!
@TheBigOTech
@TheBigOTech Год назад
great video !
@galodoublier3069
@galodoublier3069 Год назад
very cool and interesting way of teaching this!
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a million @galo!
@datawithrajadwr1597
@datawithrajadwr1597 Год назад
love this video, great effort Nic, love from India❤
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a mil @DWR!
@sanjaydubey8036
@sanjaydubey8036 Год назад
That was a superb run!!!
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a mil @Sanjay!
@bichhubiswa13
@bichhubiswa13 Год назад
Hi Nicholas, Really appreciated your efforts ... Do you have any planning to make a series on deep learning & computer vision from Zero to Hero live coding sessions ...
@cexploreful
@cexploreful 4 месяца назад
liked and subscribed!
@ashiqueraju1330
@ashiqueraju1330 Год назад
Love ypur work. Could you please do a video on how to segment hair in deep learning
@gianmarcoguarnier2525
@gianmarcoguarnier2525 Год назад
The hype was so up I expected a firewall to be hacked at some point. This fast format is gold
@RichardBronosky
@RichardBronosky Год назад
He hacked the Gibson!
@NicholasRenotte
@NicholasRenotte Год назад
LOL *matrix text appears on screen* **deep trance music starts playing** ***i start typing faster***
@nickhill6036
@nickhill6036 Год назад
Phew..this was awesome. At the pickle step I was yelling "don't worry it's part of standard library!!"... Great job! Edit: we moved over from flask to fast API last year...it is so much better wrt documenting ones api and browser based testing of the API by anyone. Thanks for sharing the knowledge.
@NicholasRenotte
@NicholasRenotte Год назад
Hahahaha there’s always something, coding under pressure is no joke. Yeah I was always a flask used but I love the simplicity and ease with fastapi
@elbeemastro
@elbeemastro 8 месяцев назад
🤣🤣🤣
@gnavarrolema
@gnavarrolema Год назад
Hi Nicholas, great videos and content. Thank you. How can I see all the courses you will be launching?
@DhanunjayaSrisailamTTT
@DhanunjayaSrisailamTTT Год назад
Wow. That's a pretty intence video. I have a request, can you please solve CV and NLP problems like this. Without documentation and StackOverflow. We really need it.
@n_128
@n_128 Год назад
This is really good content, specially because is fast 😁
@NicholasRenotte
@NicholasRenotte Год назад
Love that you enjoyed it @_n
@AIWizHash
@AIWizHash Год назад
Thalaiva!!! God Mode 👌🏻💯
@paulkarkarin466
@paulkarkarin466 Год назад
Красавчик! Жму руку! - )
@guruteja7151
@guruteja7151 Год назад
Cool.. we need more of these
@NicholasRenotte
@NicholasRenotte Год назад
Plenty more coming @Guru!
@canerkoyuncu6771
@canerkoyuncu6771 Год назад
That's amazing and wonderful! Your videos are insane and I really excited to try those but I'm beginner in python and ml. What should I learn after py and ml basics? I know basics of py and ml but I still don't know how can I go on this road.
@canerkoyuncu6771
@canerkoyuncu6771 Год назад
Also, I have 1.5 years to learn this stuff. So, I'm ready any challenging roadmap
@wgb-10
@wgb-10 Год назад
Good job Nick 👏
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a mil @Wesley!
@AnsumanSingh1
@AnsumanSingh1 4 месяца назад
Great Video. I learned a-lot. Thanks. I had a question , Can the .pkl file be large. (in GBs) How do you manage in this case ? What will be the API performance. I am thinking it might take a lot of time to load .pkl file. Looking forward to hearing more. Thanks again.
@prashantsai9726
@prashantsai9726 Год назад
Great work❤ Waiting for next episode of CodeThat. What would be the topic of next episode🤔😝
@NicholasRenotte
@NicholasRenotte Год назад
Hmmm, will just have to wait and see 😉 already working on it this morning!
@tashke318
@tashke318 Год назад
Hey Nicholas, I have been doing data science for a while, but I never really learned the deployment and API part. Do you have some useful courses/videos that will help me learn? Great video btw, just a bit fast for a beginner :D
@NicholasRenotte
@NicholasRenotte Год назад
Ooooh, I don't really know of anything out there that is really on point. I've been toying with the idea of getting this book I've heard good things but I haven't read it myself so don't have any personal opinions about it yet: www.amazon.com/Designing-Machine-Learning-Systems-Production-Ready/dp/1098107969
@Darklord-uk6yi
@Darklord-uk6yi 9 месяцев назад
pickle is not a module that has to be imported using pip, it comes with python's standard library, no need to pip install it, that's why it worked when you directly imported it, great video, full support, kindly so share the model, thanks a lot bro!
@lightkira8281
@lightkira8281 Год назад
For me u r the best
@manyes7577
@manyes7577 Год назад
wow really like this type of real time trouble shooting vedio
@NicholasRenotte
@NicholasRenotte Год назад
LOL tell me about it!
@yawninglion
@yawninglion Год назад
FYI, the pd.DataFrame constructor takes dictionary as the argument. pd.DataFrame(item.dict()) would work just fine. No need to treat values and keys separately.
@elcrackent13
@elcrackent13 Год назад
with uvicorn you can run in local and deploy, gunicorn not is necessary. Excellent video!!!!!
@NicholasRenotte
@NicholasRenotte Год назад
Weird, was getting issues in the past when running the uvicorn command in the Procfile without the preceeding gunicorn call. Thoughts?
@PlaaasmaMC
@PlaaasmaMC Год назад
Hello Nicholas, with the new release of ChatGPT I have a lot of interest in making something similar to it (as I'm sure many people do). I know it won't be nearly as intelligent as GPT but it could be tailored to a more specific task because you have full control over training data. Could you possibly make a video on token prediction?
@gaurav_0369
@gaurav_0369 4 месяца назад
This time limit thing creates a thrill
@vulamnguyen9453
@vulamnguyen9453 Год назад
Could you make a video about deploying ML/DL model on AWS? Currently I'm using ngrok and fastapi on Colab but it ain't good for long. :D Does Heroku provide gpu instances?
@mdreyadhossain5993
@mdreyadhossain5993 Год назад
love it
@zxbliz10
@zxbliz10 Год назад
I think the next challenge you should use replt, it would save time on deployment.
@NicholasRenotte
@NicholasRenotte Год назад
Will check it out @Zx Bliz!
@lostparadise7028
@lostparadise7028 Год назад
You are awesome bro ..
@NicholasRenotte
@NicholasRenotte Год назад
Thanks a million!!
@n_128
@n_128 Год назад
It would be good a deeper explanation about things like Heroku
@Viisarion
@Viisarion Год назад
Can you go and do a video on how to pass Google’s Tensorflow Developers Certificate Exam or even pass it for real and make a guide on what to focus, tips and tricks. Love the content you are putting 👊🏻👊🏻👊🏻
@NicholasRenotte
@NicholasRenotte Год назад
I haven’t done it but will look into it!!
@randomdude79404
@randomdude79404 Год назад
Daniel Bourke already has a video on it as well as a Udemt course specially designed for it. Here is the link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ya5NwvKafDk.html
@amuigayle2231
@amuigayle2231 8 месяцев назад
This video is as posted a year ago and so might not be monitored but when saving the model, are you saving the preprocessing steps as well for this to be successful? And was that facilitated by using a single pipeline for preprocessing and fitting?
@TimothyGraupmann
@TimothyGraupmann Год назад
%20 space so close! Next model try the `whisper` model and you'll need to add a little JS to read the microphone wave data to pass to the model.
@walahm1685
@walahm1685 Год назад
I been looking forward to your videos and wondering if there exists a 'Code That' equivalent for JavaScript if so, recommend some > Thanks
@soumanabettoboubacar6995
@soumanabettoboubacar6995 Год назад
Congrats. Let us try to see if we could. Thanks
@NicholasRenotte
@NicholasRenotte Год назад
Go get ‘em!! Let me know how you go!
@AlexandreSokolow
@AlexandreSokolow Год назад
I was right, I said 20 min in the poll -> video 20min long. :') well done bro
@NicholasRenotte
@NicholasRenotte Год назад
Ik ik I had to try to push myself! Thanks a mil @Alexandre!
@harshmirdhwal
@harshmirdhwal Год назад
This is a coding adventure 4 sure
@NicholasRenotte
@NicholasRenotte Год назад
It was defs interesting lol
@harshmirdhwal
@harshmirdhwal Год назад
@@NicholasRenotte bro can you provide the deadlifting video code??please
@shreyasnair994
@shreyasnair994 Год назад
Hey Nicholas can you please post a video about using aws recognition for real time object detection and triggering a raspberry pi when certain objects are detected using aws lambda, I really would like to know if its even possible and if yes how it can be done.
@ankit.chaurasiya
@ankit.chaurasiya Год назад
I don't think for simple regression, you have to do all this. Just get the intercept and equation of line or curve and calculate it programmatically
@mustafakemalpasha983
@mustafakemalpasha983 Год назад
hey man! should i start with scikit-learn or tensorflow?
@lordcepm
@lordcepm Год назад
Oh! So disappointing, you couldn't do it in 15 minutes 😒... ... Just kidding!!! 😂 Amazing video! It is going to be super useful to me. I've always have problems with deploying models and you just did it with a very good explanation. Thank you very much
@NicholasRenotte
@NicholasRenotte Год назад
LOL, thanks a mil @Carlos!
@rohitchan007
@rohitchan007 Год назад
You're the best!!!
@NicholasRenotte
@NicholasRenotte Год назад
Thanks so much @Rohit!
@tharindudilshan9015
@tharindudilshan9015 Год назад
Could you please tell me why I'm getting this issue ('OneHotEncoder' object has no attribute '_infrequent_enabled') after save the changes in Visual Studio. Also in the same time API displays "Internal Server Error" error message.
@vinayakdumbre2828
@vinayakdumbre2828 Год назад
hey nick,one api tutorial for image classification and object detection please.
@NicholasRenotte
@NicholasRenotte Год назад
Coming!
@City__Walker
@City__Walker Год назад
02:34 Just have more simple variant "pip install fastapi[all]"(full pocket include uvicorn, pydantic)
@walidflux
@walidflux Год назад
can you do automatic number plate recognition with dashboard analytics, alerts, etc.
@luis96xd
@luis96xd Год назад
In the future, could you make a video of an API NLP Project? Especially with hugging face LLM models?
@NicholasRenotte
@NicholasRenotte Год назад
You got it!
@luis96xd
@luis96xd Год назад
@@NicholasRenotte Omg, thanks! This will be so cool!
@calvinlucian387
@calvinlucian387 Год назад
Pickle put you in a real pickle there for a sec...
@NicholasRenotte
@NicholasRenotte Год назад
LOL tell me about it!
@Muhammad_Adams
@Muhammad_Adams Год назад
Please, what files are required from my checkpoint (saved_model) to deploy an object detection model (Tensorflow), and how can I deploy it using FastAPI? Thank you
@Kevin-om6ku
@Kevin-om6ku Год назад
Could you make a video on how to detect objects in real time from a live feed that isn't a webcam?
@ishammansoor5602
@ishammansoor5602 Год назад
When I use Tensorflow Js. cameraWithTensors with expo to create an object detection app, my camera keeps getting stuck everytime it makes a prediction, could you please explain why this is happening.
@muhammaddanishalam4558
@muhammaddanishalam4558 Год назад
Please make a online test proctoring module with AI.
@AmanSharma-cq3rb
@AmanSharma-cq3rb 2 месяца назад
hey, i tried to deploy a deep learning API to heroku but my model size is too large 2.5gb so it doesnt build source. How can i do the same can you tell me some workaround.
@kasper369
@kasper369 5 месяцев назад
quick question, you can do this in javascript as well right ?
@afterwork260
@afterwork260 Год назад
Hi Nicholas, just curious, what monitor do you use? I
@NicholasRenotte
@NicholasRenotte Год назад
Samsung CT550, but I don’t recommend them…not vesa mountable!
@afterwork260
@afterwork260 Год назад
@@NicholasRenotte Thanks for the reply. So what monitor do u recommend now?
@NicholasRenotte
@NicholasRenotte Год назад
@@afterwork260 honestly haven't had a look at them in a while but the last one I was interested in was the Samsung CRG90
@mutaherkhan2161
@mutaherkhan2161 Год назад
sir can we used same method to deploy deep learning model?
@thomashead-rapson811
@thomashead-rapson811 11 месяцев назад
Pickle is part of standard libraries?
Далее
Why You NEED To Learn FastAPI | Hands On Project
21:15
Просмотров 149 тыс.
Редакция. News: 122-я неделя
44:21
Просмотров 1,4 млн
Когда поругался с мамой
00:41
Просмотров 547 тыс.
5 Things I Wish I Knew Before Learning Streamlit
21:34
The Ultimate Coding Setup for Data Science
17:35
Просмотров 105 тыс.
FastAPI, Flask or Django - Which Should You Use?
9:49
How ChatGPT Built My App in Minutes 🤯
8:28
Просмотров 2 млн
Deploy ML model in 10 minutes. Explained
12:41
Просмотров 9 тыс.
Why Hasn't Anyone Built This? I’m Doing It
27:19
Просмотров 2,3 тыс.
iPhone 16 - КРУТЕЙШИЕ ИННОВАЦИИ
4:50
Купил этот ваш VR.
37:21
Просмотров 285 тыс.
Поворот смартфона ↩️
0:32
Просмотров 76 тыс.
Main filter..
0:15
Просмотров 9 млн