Tutorial 2- End To End ML Project With Deployment-Project Structure, Logging And Exception Handling

  Рет қаралды 112,231

Krish Naik

Krish Naik

Күн бұрын

Пікірлер: 135
@krishnaik06
@krishnaik06 Жыл бұрын
Join this channel membership to get access to materials and connect with me: kzbin.info/door/NU_lfiiWBdtULKOw6X0Digjoin
@fazankabir2029
@fazankabir2029 Жыл бұрын
OMG OMG Your channel is gold mine. No words to thank your effort for explaining such skills while keeping the content so easy and simple. Please keep contributing (Liked, commented, subscribed & shared)
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@MyyfitnessWorld
@MyyfitnessWorld Жыл бұрын
Hi @krish sir, the error in why it wasn't getting logged into the file was because we didn't import the logger.py file as a module in the exception.py file.. Once I did that, it worked for me.. Thanks for the video. Helped a lot in understanding the Project Setup.
@madi6901
@madi6901 10 ай бұрын
I did the same. Working now. Thanks
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@G_Keepingitreal
@G_Keepingitreal 22 күн бұрын
@@nakul469 I'm on the same boat. I'm wondering how to resolve this.
@omkarkumbhar3222
@omkarkumbhar3222 Жыл бұрын
This is the best tutorial of github i ever learn i understood all commands, also about project and things related to project how to set environment and all things ... Amazing Krish bhaiya ...thank you very much 💪
@kimerared
@kimerared 8 ай бұрын
Thank you for the series of videos showing the end-to-end code structure. It is awesome!!!
@arnoldk5415
@arnoldk5415 Жыл бұрын
Sir. Thank you so much for all the work you do. You are a national treasure!!!
@esfantastic-shorts
@esfantastic-shorts Жыл бұрын
Sir.., First you have need to open .log file then we will logging successfully into .log file... Thank you sir ❤❤ to helping a lot..
@bevansmith3210
@bevansmith3210 8 ай бұрын
Gosh, its like watching a master guitarist play an amazing solo
@sohelshaikh1171
@sohelshaikh1171 Жыл бұрын
currently doing a DS internship, it was my first time training an model in the actual industry with real life messy data. if you looked at my task folder you'll probably catch a fever, I know I did (⊙ ⊙;). This video will help me in my future endeavors. Thanks! about the error not being logged, we haven't import our logger script
@zzzmd11
@zzzmd11 11 ай бұрын
Thank you so much for the excellent set of video tutorials. Hats off for the great dedicated work..
@nani543
@nani543 Жыл бұрын
So helpful! Thank you so much you are such a good teacher!!!
@nafeuhassanhelal1581
@nafeuhassanhelal1581 Жыл бұрын
Brother,i am from Bangladesh. i am watching your videos.. it's so helpful. keep up good works..
@ayushimalaviya8416
@ayushimalaviya8416 Жыл бұрын
Really like the way you explain. Nice work sir!!
@list10001
@list10001 9 ай бұрын
Amazing tutorial. Appreciate your effort.
@souvikbasak7094
@souvikbasak7094 Жыл бұрын
Enjoyed, learned as well as executed it!!! Thank you so much sir!!
@radhekrashna2148
@radhekrashna2148 Жыл бұрын
Thank you so much for working hard to create such a quality content for us Really you are great work I am very thankful to you I will look forward to next video and series of same type
@sujojohn2948
@sujojohn2948 Жыл бұрын
Thank you so much for all the effort you took explaining this nicely
@shikharawat8096
@shikharawat8096 Жыл бұрын
This is so so so great. Thankyou for this Sir.
@rupindersingh1312
@rupindersingh1312 Жыл бұрын
thanks for this lecture date - 9-7-2023
@bivasbisht1244
@bivasbisht1244 Жыл бұрын
this is just beautiful , no words for krish
@mahdiaspanani8004
@mahdiaspanani8004 5 ай бұрын
I don't have enough words to say thanks to you.
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@photonplus2838
@photonplus2838 Жыл бұрын
Beautiful Explanation.
@sandeeppvn0503
@sandeeppvn0503 Жыл бұрын
Amazing video! Its a solid bridge to transition from academics to industry! Thank you Krish! Ther is one issue I encountered, def error_message_details(error, error_detail:sys): in this, the type casting to sys is showing up as an error on vscode: Module cannot be used as a type. Could you please help me out how to resolve this?
@themuslimview
@themuslimview 11 ай бұрын
I am facing the same issue. Any solutions?
@GauthamRajS
@GauthamRajS 3 ай бұрын
import sys
@gnanadeepch5065
@gnanadeepch5065 Жыл бұрын
DS GOD. He needs to be pushed to TED Talks. He can touch many more insecure Engineer lives.
@robinchriqui2407
@robinchriqui2407 Жыл бұрын
Thanks Krish for your tutorial!
@sagarthacker96
@sagarthacker96 Жыл бұрын
Hello Krish, I enjoyed watching your video and getting to learn new stuff from it. I wanted to ask is there a reason why we created a logs directory structure as `logs/file_name.log/file_name.log`. In the middle there is a directory named same as the filename. Do we actually need the directory or is that a common practice in the industry? Thank you! Looking forward for more such videos!
@rabeegheni1224
@rabeegheni1224 Жыл бұрын
i am wondeing same thing, did you find an answer?
@sagarthacker96
@sagarthacker96 Жыл бұрын
@@rabeegheni1224 Nope, I still couldn't find an answer for that.
@mathsmoz5353
@mathsmoz5353 Жыл бұрын
Hi, I think it's it was an error he didn't notice. I ran it with the code snippet below and it work's well for me: LOG_FILE = f"{datetime.now().strftime('%y_%m_%d_%H_%M_%S')}.log" logs_path = os.path.join(os.getcwd(),"logs") os.makedirs(logs_path,exist_ok=True) LOG_FILE_PATH = os.path.join(logs_path, LOG_FILE) Hope it will help.
@sagarthacker96
@sagarthacker96 Жыл бұрын
@@mathsmoz5353 Got it. Thanks!
@AmbarGharat
@AmbarGharat 8 ай бұрын
Basically you didn't join LOG_FILE in logs_path variable. @@mathsmoz5353
@javeedtech
@javeedtech Жыл бұрын
Waiting.. Is it an alternate day series..? Thanks
@shehrozeshahzad4363
@shehrozeshahzad4363 Жыл бұрын
Love you Sir Thank You so much!
@suyashshrivastava8317
@suyashshrivastava8317 7 ай бұрын
Brilliant!!
@SaurabhSingh-oi5ev
@SaurabhSingh-oi5ev Жыл бұрын
Import logger into the exception file which will trigger the logger and your log file will be created..
@sahilpatel2187
@sahilpatel2187 Жыл бұрын
outstanding
@AI_Aficionado
@AI_Aficionado Жыл бұрын
Dear Krish could you please suggest how do I add sales experience for Data Scientist role will this add any weightage for the resume or should I go completely as a fresher, I have experience in Auto, banking and telecom industry @Krish Naik
@akj3344
@akj3344 Жыл бұрын
Hey I had some sales experience and switched my career to Software Developement. Your sales experience does not matter at all. Mention it on your resume but apply as fresher.
@AI_Aficionado
@AI_Aficionado Жыл бұрын
Thanks for the suggestion bro I did the same
@sibaprasadnaikbehera3442
@sibaprasadnaikbehera3442 Жыл бұрын
just we have to import logger then log file will be created
@subhashdixit5167
@subhashdixit5167 Жыл бұрын
Thanks once again
@neilrohra7374
@neilrohra7374 Жыл бұрын
If anyone is facing issues with Datetime or any library, reinstall the virtual environment.
@sameertupe6094
@sameertupe6094 11 ай бұрын
How to do it can you please explain
@RaghavTigadi-de3xv
@RaghavTigadi-de3xv 6 ай бұрын
am facing this error No module named 'datetime'
@neilrohra7374
@neilrohra7374 6 ай бұрын
Reinstall the virtual environment and it'll be done.
@RaghavTigadi-de3xv
@RaghavTigadi-de3xv 6 ай бұрын
@@neilrohra7374 if i re install need to all from beginning?
@rajkachhadiya6192
@rajkachhadiya6192 Жыл бұрын
Hello @krishnaik06 I really appreciate your work, it is very helpful for me personally but I have one suggestion if possible then please explain each and every point or command properly so we don't have to take support from others. I can understand your time limit but still little a suggestion for me I hope you will work on it. Thank you
@VishalSingh-wt9yj
@VishalSingh-wt9yj Жыл бұрын
you are the best sir
@G_Keepingitreal
@G_Keepingitreal 22 күн бұрын
Can someone help me? I'm getting no error when I run the exception.py with the try/catch blocks. In the terminal, nothing is showing up. Similarly, my Log files does not have any logs printed.
@shalakam1617
@shalakam1617 Жыл бұрын
Thank You
@nagrajwellness9720
@nagrajwellness9720 Жыл бұрын
Sir you are genious
@koblanyamadi8816
@koblanyamadi8816 Жыл бұрын
Thanks, Krish for the video it was very helpful. I'm having an error with "levelname" in line 13. error message says Unknown word
@gajender6075
@gajender6075 Жыл бұрын
from src.logger import logging ModuleNotFoundError: No module named 'src'PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test> find this error that src in not found please anyone can fix it..
@jerrinthomas1874
@jerrinthomas1874 Жыл бұрын
me also same error, how to fix it
@gajender6075
@gajender6075 Жыл бұрын
@@jerrinthomas1874 no one reply even not krish sir I totally stuck here ..If you get the solution please ping me
@ebrahimbehrouzian6930
@ebrahimbehrouzian6930 Жыл бұрын
@@gajender6075 & @Jerrin Thomas , I have the same problem. Please let me know if you could find the solution. Thanks!
@gajender6075
@gajender6075 Жыл бұрын
@@ebrahimbehrouzian6930 I see the very solution but nothing is working in my case you should try by creting __init__() file in each directory or gave the path in sys of that perticular directory
@adityagarg7816
@adityagarg7816 Жыл бұрын
Make sure you have __init__.py in every folder.
@enamulhaque7135
@enamulhaque7135 Жыл бұрын
Hi @krishnaik06 If I want to develop 10 different projects in 10 different github repositories, do i need to create this setup and environment every time from the beginning?
@hmtbt4122
@hmtbt4122 Жыл бұрын
thanks
@yohnfhayersiregar8233
@yohnfhayersiregar8233 11 ай бұрын
hello there, have you finished this? gender_group = df.groupby('gender').mean() gender_group I have been trying, but still error would you share your? how to solve it? thanks
@jamespaz4333
@jamespaz4333 Жыл бұрын
We also need Sunny!!!
@pandalanhukuk804
@pandalanhukuk804 4 ай бұрын
First of all, thank you for all the videos and the playlist. I have just one piece of feedback: please avoid using "with respect" in every second sentence. It's often used incorrectly and doesn't add any benefit.
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@ayushratan6452
@ayushratan6452 Жыл бұрын
hey does anyone know why does'nt the logs file show under git status ?
@ridj41
@ridj41 Жыл бұрын
Very complex to understand.. Most of the concepts were unclear
@vishnukg2058
@vishnukg2058 Жыл бұрын
Will you use docker, aws?
@krishnaik06
@krishnaik06 Жыл бұрын
yes :)
@RohiniN08
@RohiniN08 Жыл бұрын
Which is the interpreter used?venv is not activating after restarting vs…any help??
@IsrakJahanSamir
@IsrakJahanSamir 3 ай бұрын
my logger is not printing the message. it is creating logs folder and file. But the message is not there in the file. If anyone face the problem and solved it or know the solution, pls reach out to me. Thankyou
@harishs6315
@harishs6315 Жыл бұрын
hi krish, why do we need custom exception handeling when we can handle almost all the execptions using the inbuilt python functionality? Are there any specific type of errors or issues in ml workflow where this is used(cases where the inbuilt execption handeling is not enough)?
@suleymanerim2119
@suleymanerim2119 Жыл бұрын
I also wonder this
@ritikaradh
@ritikaradh 11 ай бұрын
at 26:40, after running python src/logger.py the log folder and the logger file got created but the message "Logging has started" didn't get printed. Can somebody help me pleasee.
@shiva-xt2mo
@shiva-xt2mo 10 ай бұрын
i think you should recheck your code
@IsrakJahanSamir
@IsrakJahanSamir 3 ай бұрын
did you solved it. I am having the same issue
@G_Keepingitreal
@G_Keepingitreal 22 күн бұрын
i'm also having the same issue. Was anyone able to solve this? Please help.
@parthibanpalanisamy1434
@parthibanpalanisamy1434 Жыл бұрын
Please suggest me to resolve the issue which i am getting as below: File "src/exception.py", line 2, in from src.logger import logging ModuleNotFoundError: No module named 'src'
@randomshortzz
@randomshortzz Жыл бұрын
Same issue brother have you resolved it
@hitarthshah8199
@hitarthshah8199 Жыл бұрын
Try doing "cd src" if you are running it in cmd, it will work@@randomshortzz
@AmbarGharat
@AmbarGharat 4 ай бұрын
from logger import logging use instead src.logger import logging Hope it helps!
@vamsirenumala3153
@vamsirenumala3153 28 күн бұрын
use, from logger import logging
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@utkarshkanojia3193
@utkarshkanojia3193 Жыл бұрын
Can I do this coding in Google collab
@preetisain1549
@preetisain1549 Жыл бұрын
Hlo sir instead of vs code I can make project on jupter or not??
@xahidhasan6361
@xahidhasan6361 Жыл бұрын
Same question here. If you already know the answer please let me know
@ansharora5698
@ansharora5698 10 ай бұрын
I am getting the no module named datetime error, while running python src/logger.py
@pavankurapati6628
@pavankurapati6628 7 ай бұрын
import os import sys # Use a raw string for the file path sys.path.append(os.path.abspath(r'C:\Users\xxxx\mlproject\src')) from logger import logging try this :)
@vKNemesis
@vKNemesis Жыл бұрын
i have issue in enviroment even my file is not running and I did the same ways what u are doing still I have environments issues as u getting a new file in vs code after running m not able to get those depressed as hell
@samarmohanty6109
@samarmohanty6109 Жыл бұрын
what's the issue .explain i will help you
@harishs-dm8mm
@harishs-dm8mm Жыл бұрын
When the part 3 video gonna come
@krishnaik06
@krishnaik06 Жыл бұрын
Today is holi enjoy :)...the video will come tomorrow
@ShahbazKhan-ph3vd
@ShahbazKhan-ph3vd Жыл бұрын
😂
@PavanKumar-ut2lo
@PavanKumar-ut2lo Жыл бұрын
Hi sir, do we need any paid version software for this project?
@samarmohanty6109
@samarmohanty6109 Жыл бұрын
No
@PavanKumar-ut2lo
@PavanKumar-ut2lo Жыл бұрын
@@samarmohanty6109 even for deploying tools. Because heroku has no free trails.
@abhijeetrokade2349
@abhijeetrokade2349 Жыл бұрын
What is the problem statement?
@krishnaik06
@krishnaik06 Жыл бұрын
We will discuss in the next video currently we are discussing the project set up
@abhijeetrokade2349
@abhijeetrokade2349 Жыл бұрын
@@krishnaik06 Thank you
@barbarafirmino3586
@barbarafirmino3586 Жыл бұрын
Krish, I have a simple question but why are you building a project from zero instead of using Kedro or Cookie Cutter pattern? It's just because you are being didactic or there's something else?
@naraendrareddy273
@naraendrareddy273 Жыл бұрын
He wants us to understand the structure of projects I guess
@ShahbazKhan-ph3vd
@ShahbazKhan-ph3vd Жыл бұрын
No. Today Krish will upload 2 videos😅
@01kumarr
@01kumarr Жыл бұрын
where is part 1
@vivekvkini4506
@vivekvkini4506 Жыл бұрын
kzbin.info/www/bejne/iKeZhnl9g9KBkMk
@rishiraj2548
@rishiraj2548 Жыл бұрын
🙏💯💯
@vagheeshmk3156
@vagheeshmk3156 6 ай бұрын
#KingKrish
@deepakgoyal1643
@deepakgoyal1643 Жыл бұрын
sir kuch bhi samaj me nhi aaya
@EvilCherry3
@EvilCherry3 Жыл бұрын
16:04 You lost your accent here lol
@tejas4054
@tejas4054 Жыл бұрын
Tum ml sikha rhho ki dara rahe ho itna sara code likh k ,,, backend developer ka kuch kaam nhi hai ml me toh kyu backend developer ka code likh ke dara rhe ho,,, hum data science kare ya na kre phir
@beAdevops
@beAdevops Жыл бұрын
Right, Really Need this all kind of stuff ?
@tejas4054
@tejas4054 Жыл бұрын
@@beAdevops ha na bhai main toh coding dekh k darr gya agar itna hoga toh main to analyst post pe javu
@Maciek17PL
@Maciek17PL Жыл бұрын
for logs you created logs/date.log/date.log, did you mean to create this directory in the middle?
@zub3rahmed76
@zub3rahmed76 Жыл бұрын
MAKSOOOD BHAI @krishnaik06 , Tum bhohot achha kaam krta hai . Apne ko tumko dil se thanks bolne ka hai . Jaadu ki Jhappi from Mumbai.🫂🫂
@naveenkumarP-n9q
@naveenkumarP-n9q Жыл бұрын
Hi Sir i am constatntly getting this error no matter what i have even checked up with chatgpt LOG_FILE=f"{datetime.now().strftime('%m_%d_%Y_%H_%M_%S')}.log" ^ SyntaxError: invalid syntax
@rajamsameer
@rajamsameer 8 ай бұрын
I'm not getting log files 🤌
@AmbarGharat
@AmbarGharat 4 ай бұрын
In .gitignore file comment this *.log This will only work if you are able to see log files in your file explorer folder but not in vs code. Hope this helps!
@kaushalkumar3017
@kaushalkumar3017 Жыл бұрын
Thanks
@poojakallure5808
@poojakallure5808 Ай бұрын
Thank you.
@nakul469
@nakul469 24 күн бұрын
if i am finding this video a little difficult, does this mean i need to work more on my python basics? Building and performing EDA is easy for me.
@mdabdullahalhasib2920
@mdabdullahalhasib2920 Жыл бұрын
Thanks.
HELP!!!
00:46
Natan por Aí
Рет қаралды 72 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 2,9 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 128 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 66 МЛН
Dynamic Pricing using Machine Learning Demonstrated
8:05
Data Science Demonstrated
Рет қаралды 29 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 339 М.
FASTEST Way to Learn Coding and ACTUALLY Get a Job in 2024
11:04
Harkirat Singh
Рет қаралды 205 М.
NeoVim Conference Live
ThePrimeTime
Рет қаралды 876
I tried 50 Programming Courses. Here are Top 5.
7:09
Sahil & Sarra
Рет қаралды 2,3 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 72 МЛН