Tutorial 4-End To End ML Project With Deployment- Data Ingestion Implementation Line By Line

Поделиться
HTML-код
  • Опубликовано: 8 мар 2023
  • In thi videos we will be implementing the data ingestion where we will be performing necessary tasks such reading the dataset,dividing the dataset into train and test and saving it in the artifact folder
    Project Code: github.com/krishnaik06/mlproject
    Join iNeuron's Data Science Masters Course with Job Guaranteed Starting From April 3rd 2023
    ineuron.ai/course/Full-Stack-...
    Join this channel membership to get access to materials:
    / @krishnaik06
    check out the end to end project playlist
    • End To End Data Scienc...
    Check Out My Other Playlist
    Python Playlist:
    Python In English: • Complete Road Map To B...
    Python In Hindi: • Tutorial 1- Python Ove...
    Stats Playlist:
    English 7 Days Statistics Live Session : • Live Day 1- Introducti...
    Hindi: Stats Playlist: • Starter Roadmap For Le...
    Complete ML Playlist: • Complete Road Map To B...
    Hindi: ML Playlist: • Introduction To Machin...
    5 DaysLive Deep Learning Playlist: • 5 Days Live Deep Learn...
    Complete Deep Learning Playlist:
    • Why Deep Learning Is B...

Комментарии • 188

  • @krishnaik06
    @krishnaik06  Год назад +12

    Check out the entire playlist of end to end project implementation
    ruclips.net/p/PLZoTAELRMXVPS-dOaVbAux22vzqdgoGhG

    • @education4all686
      @education4all686 Год назад

      Hi Krish.. what is this concept in python programming? train_path : str=os.path..

    • @SylvanusNusetorAtiku
      @SylvanusNusetorAtiku Месяц назад

      the artifacts folder was not created when I runned the programe. could you please help?
      @ krishnaik06

  • @imgopz786
    @imgopz786 Год назад +4

    To the point, effective, made complicated setup simple & optimized the course for beginners. A lot of hard work seen. Thank you!

  • @saniyaishan-hi4mg
    @saniyaishan-hi4mg Год назад +10

    Absolutely love the content . You are revolutionizing the education in data science field.

  • @omchaithanya56
    @omchaithanya56 Год назад +4

    Love your content Krish. Watching your tutorials, It's a good start of my day. Thanks a lot for all your efforts.

  • @arias2832
    @arias2832 Год назад +1

    Beautiful, Thank you!

  • @AzzYung
    @AzzYung Месяц назад

    I love the video! It's very intuative and informative as you explain the line-by-line coding! Keep it coming please!

  • @AI-Brain-or-Mind
    @AI-Brain-or-Mind Год назад +5

    you providing lots knowledge sir but getting above the head 😇😇😇

  • @robinchriqui2407
    @robinchriqui2407 Год назад +1

    Amazing thank you!

  • @rakeshverma6867
    @rakeshverma6867 Год назад

    Very informative session. Please keep it up.

  • @utkarshgaikwad2476
    @utkarshgaikwad2476 Год назад +1

    Really Incredible project, just amazing 🤩

  • @user-rb4ou3yw4y
    @user-rb4ou3yw4y 6 месяцев назад

    i love end to end ML series ^^
    Thank you Krish.

  • @dp6736
    @dp6736 5 месяцев назад

    Hi Krish, This is an amazing tutorial with very relevant contents in easy to understand format. One of the best. Thanks

  • @hm2715
    @hm2715 Год назад +19

    import os
    import sys
    from pathlib import Path
    sys.path.append(str(Path(__file__).parent.parent))
    from exception import CustomException
    from logger import logging
    import pandas as pd
    from sklearn.model_selection import train_test_split
    from dataclasses import dataclass ...............................whoever is facing src module not found or log module not found please , replace ur code

    • @MR_Struggler-J
      @MR_Struggler-J Год назад +9

      python -m src.components.data_ingestion run by this command

    • @pranavthakkar2720
      @pranavthakkar2720 Год назад +3

      Brother it really helped me. I can't express my happiness in words. Thanks a lot.😃

    • @abhijeetjain8228
      @abhijeetjain8228 Год назад

      Bro it really work thank you. also plz explain this line sys.path.append(str(Path(__file__).parent.parent)).
      code that work for me.
      import os
      import sys
      from pathlib import Path
      sys.path.append(str(Path(__file__).parent.parent))
      from exception import CustomException
      from logger import logging
      import pandas as pd
      from sklearn.model_selection import train_test_split
      print('it is here')

    • @sankulpkhera7507
      @sankulpkhera7507 Год назад

      It still doesn't work, can you share your code ?

    • @manojsh4398
      @manojsh4398 11 месяцев назад

      Thanks a lot, it took me more than 4hrs :)

  • @mrityunjayupadhyay7332
    @mrityunjayupadhyay7332 Год назад

    Excellent

  • @akarkabkarim
    @akarkabkarim Год назад

    just keep continue sir krish

  • @priscillah.5106
    @priscillah.5106 Год назад +1

    Krish you're a blessing to many. Thanks so much for sharing your knowledge with us. Am glad to be associated with ineuron family . Blessings 🙌

  • @hmtbt4122
    @hmtbt4122 Год назад +1

    thanks

  • @aakashpal0777
    @aakashpal0777 Год назад +3

    Hiii Sir Use artifacts/ to ignore folder

  • @ShivamPatel-yg3kd
    @ShivamPatel-yg3kd Год назад +1

    Hi all, I am just struggling to understand that what we need to retrain in production again. Because once we train the model, we export it and write the prediction or inferencing code and that code needs to be running in production to run predictions or inferencing on production data. Kindly help me to understand this or am I missing something.

  • @AbhijitChakraborty103
    @AbhijitChakraborty103 Год назад +1

    Is it recommended to have multiple functions for different database ingestion, or it should be done in the single function?

  • @user-dp7lr5qh6o
    @user-dp7lr5qh6o 4 месяца назад

    thank you

  • @swL1941
    @swL1941 Год назад

    @Krish Naik
    Good tutorial. But How to work when we use Cross validation instead of train test split ??

  • @rupindersingh1312
    @rupindersingh1312 Год назад

    thanks for this video series , sir
    10-07-2023

  • @ganeshgunjal4220
    @ganeshgunjal4220 Год назад +2

    Thank u so much sir for for this project sessions... u r taking so much efforts for us. best of best project explanations in every video. From Nashik(Maharashtra)

    • @ganesh.mane18
      @ganesh.mane18 Год назад

      Hi bro,
      On which topic this project is ??

  • @PavanKumar-ut2lo
    @PavanKumar-ut2lo Год назад +1

    Hi sir, do we need any paid version software for this project?

  • @Pravin33unique95
    @Pravin33unique95 Год назад +1

    Your are great sir i working on project I have one question So im working on a project and i have a column which is car mdels but it contains numeric and letters so i was wondering if i did an encoding method the numbers could be lost so i want to know is there another way

  • @NiyatiVyas-yu3uz
    @NiyatiVyas-yu3uz Год назад +2

    Hey Krish, I have bee following your series from Day 1 and it is amazing. I had a small doubt, from where can I get this data? I tried to use raw version from your git but kept getting error. Or can you give the name of dataset so it would be easier to search for it.

    • @Pravin33unique95
      @Pravin33unique95 Год назад

      I have same doubt please anyone know please help me

    • @imadsyed6417
      @imadsyed6417 Год назад

      ​@@Pravin33unique95 tell me

    • @kasapavan6844
      @kasapavan6844 Год назад

      @@Pravin33unique95 data set link is provided in EDA file

  • @hashir7702
    @hashir7702 Год назад +1

    My logs are displayed on the terminal screen but not being added to the log file in the explorer. Any fix for this?

  • @poraspatle7980
    @poraspatle7980 Год назад

    What should be my approxh to create multi-class image classification and captioning without using Tensorflow, Keras, or sklearn?

  • @didimoescobar2247
    @didimoescobar2247 6 месяцев назад +1

    A great video, but I had have a issue with modules instances, for instance, when I put: python src/components/data_ingestion.py the process trigger a ModuleNotFoundError: No module named 'src'.............. but, if write this comand line: python -m src.components.data_ingestion the process works, so... why isn't work the instance: from src.exception import CustomException ????? please I'll wait any feedback...

  • @brajbhooshan7349
    @brajbhooshan7349 Год назад

    Hi krish, I am facing issue while installing requirements.txt

  • @avbendre
    @avbendre Год назад

    hi all, when i am restarting the project from vs code ia m unable to run the terminal of venv, do we have to activate again for each set up the env?
    what all are the things to activate when starting up

    • @abhishekg4147
      @abhishekg4147 Год назад

      Yes I'm facing the same issue @krish sir plz resolve about it

    • @Ran_Dhir_Singh
      @Ran_Dhir_Singh Год назад

      launch vs code from anaconda command prompt and then you can use conda to activate your venv environment, as it needs to use conda environment

  • @mohdsameer9214
    @mohdsameer9214 8 месяцев назад +2

    Getting error by running data_ingestion.py
    Error : module not found from src.component.data_transformation

    • @jmcloudpro
      @jmcloudpro 6 месяцев назад +3

      Python will search for modules in the same directory as the script, i.e. src/components/:
      to avoid this, i run the follwin line in the terminal:
      python -m src.components.data_ingestion

    • @kimerared
      @kimerared 4 месяца назад

      @@jmcloudpro I had the same issue. Thanks to you, I was able to resolve the issue.

    • @RajatSharma-ip1jp
      @RajatSharma-ip1jp 2 месяца назад

      @@jmcloudpro thanks bro

  • @mubinahmadtokhi5869
    @mubinahmadtokhi5869 Месяц назад

    I can not save train_set and test_set to path, I can save raw data but can not save after splitting. does anyone know the solution?

  • @fernandolalangui3444
    @fernandolalangui3444 Год назад +1

    What is the difference between 'notebook/data/stud.csv' and 'notebook\data\stud.csv'?
    In my PC I have the relative path how: 'notebook/data/stud.csv'

    • @Pravin33unique95
      @Pravin33unique95 Год назад

      How you create this path and how you import data set please help i don't get it

    • @hm2715
      @hm2715 Год назад

      its different for different os system, u probably using mac

  • @vinodkumar-ce5eu
    @vinodkumar-ce5eu Год назад

    @Krish Naik, u added .artficats in git ignore instead of artifacts, that's why the folder pushed into git

    • @krishnaik06
      @krishnaik06  Год назад +2

      No worries but i am glad u understood why

    • @SylvanusNusetorAtiku
      @SylvanusNusetorAtiku Месяц назад

      @@krishnaik06 the artifacts folder was not created and I cant continue the tutorial because of this, could please help?

  • @talk2pankajx
    @talk2pankajx 9 месяцев назад +1

    d:\Projects\mlproject\venv\python.exe: can't find '__main__' module in 'src/components' Can anyone help me fix this error as I am nnot able to get this fixed to generate the filrs

  • @NutSorting
    @NutSorting Год назад

    How to do data ingestion for image data?

  • @rishubjha4531
    @rishubjha4531 Год назад +6

    hello guys,
    I have veen trying to execute data ingestion but keep getting an error as" from src.exception import CustomException
    ModuleNotFoundError: No module named 'src'", I have verified __init__.py in src folder but still no luck. Any leads as to how to resolve this issue.

    • @Sandeep40552
      @Sandeep40552 Год назад

      did u get it

    • @gbrejeiro3431
      @gbrejeiro3431 Год назад

      Go to your root folder of your project through command line and type: export PYTHONPATH=$PYTHONPATH:`pwd`

    • @arangembu974
      @arangembu974 Год назад +5

      Instead, you can run: python -m src.components.data_ingestion

    • @rockgangadharan8531
      @rockgangadharan8531 Год назад

      @@arangembu974 thanks bro it's working

    • @hm2715
      @hm2715 Год назад

      @@rockgangadharan8531 it is showing no module name logger, any idea ?

  • @kasapavan6844
    @kasapavan6844 Год назад +1

    I am getting module error , no module named src.exception why I am getting this , still I have src.exception module can any one clarify my doubt

    • @Mskirrrr
      @Mskirrrr 9 месяцев назад

      I am getting the same error, did you find the solution?

  • @gyanprakash7832
    @gyanprakash7832 Год назад +1

    os.makedirs(os.path.dirname(self.ingestion_config.train_data_path),exist_ok=True) sir in this code why you have set .train_data_path ?

    • @Veerbasantreddy111
      @Veerbasantreddy111 11 месяцев назад

      i think he is creating folder for artifacts

    • @sohamsant
      @sohamsant 4 месяца назад

      but why only for train_data_path , and not for test_data_path or raw_data_path@@Veerbasantreddy111

  • @menakask6050
    @menakask6050 Год назад

    For me it displaying the error like, 'src' module is not recognized though I am using --init__.py in src folder. pls give suggestion.

    • @arjitsharma2503
      @arjitsharma2503 8 месяцев назад

      same for me

    • @prarabdhpal2184
      @prarabdhpal2184 6 месяцев назад

      ​​@@arjitsharma2503 same problem guys did u find any solution?

  • @shubhamkshirsagar4511
    @shubhamkshirsagar4511 Месяц назад

    from pathlib import Path
    sys.path.append(str(Path(__file__).parent.parent))
    this will fix the issue of no src module found

  • @hemanth-kumar05
    @hemanth-kumar05 2 дня назад

    I cant keep up, Like in the previous tutorial it was on ipynb file and all the things was sorted out there but in this tutorial we are creating some new stuffs...like which is important and which i should follow

  • @deependrarawat5489
    @deependrarawat5489 9 месяцев назад +1

    (C:\Deependra\generic-ML-project\venv) C:\Deependra\generic-ML-project>python src/components/data_ingestion.py
    Traceback (most recent call last):
    File "src/components/data_ingestion.py", line 3, in
    from src.exception import CustomException
    ModuleNotFoundError: No module named 'src'
    Even when I have the src folder and everything is in order, I still receive this issue. Could someone please explain why?

    • @SameerAhmad-vz4wo
      @SameerAhmad-vz4wo 8 месяцев назад

      import os
      import sys
      from pathlib import Path
      sys.path.append(str(Path(__file__).parent.parent))
      from exception import CustomException
      from logger import logging
      import pandas as pd

    • @girivishnucharan6482
      @girivishnucharan6482 4 месяца назад

      got solution bro?

  • @mohsinkhan-bw3cd
    @mohsinkhan-bw3cd Год назад +1

    Hi krish is this series only for experienced people or for freshers also?

  • @NTISAniruddhSingh
    @NTISAniruddhSingh Год назад

    sir why did we wrote the make directory code for only the train data path and not for test and raw

  • @divjotsingh4818
    @divjotsingh4818 4 месяца назад

    facing an issue "ModuleNotFoundError: No module named 'src' " someone please tell the solution to resolve it

    • @AmbarGharat
      @AmbarGharat 3 месяца назад

      import os
      import sys
      from pathlib import Path
      sys.path.append(str(Path(__file__).parent.parent))
      from exception import CustomException
      from logger import logging
      import pandas as pd
      from sklearn.model_selection import train_test_split
      from dataclasses import dataclass
      @dataclass
      class DataIngestionConfig:
      train_data_path = os.path.join('artifacts',"train.csv")
      test_data_path = os.path.join('artifacts',"test.csv")
      row_data_path = os.path.join('artifacts',"data.csv")
      class DataIngestion:
      def __init__(self):
      self.ingestion_config = DataIngestionConfig()
      def initiate_data_ingestion(self):
      logging.info("Entered the data ingestion method or component.")
      try:
      df = pd.read_csv('Notebook/data/stud.csv')
      logging.info("Read the dataset as dataframe.")
      os.makedirs(os.path.dirname(self.ingestion_config.train_data_path), exist_ok = True)
      df.to_csv(self.ingestion_config.row_data_path, index = False, header = True)
      logging.info("Train test split initiated.")
      train_set, test_set = train_test_split(df, test_size = 0.2, random_state = 42)
      train_set.to_csv(self.ingestion_config.train_data_path, index = False, header = True)
      test_set.to_csv(self.ingestion_config.test_data_path, index = False, header = True)
      logging.info("Ingestion of the data is completed.")
      return(
      self.ingestion_config.train_data_path,
      self.ingestion_config.test_data_path
      Type In command Prompt/ powershell : python src/components/data_ingestion.py or python -m src.components.data_ingestion

  • @swatijadhav6304
    @swatijadhav6304 Год назад +2

    ModuleNotFoundError: No module named 'src' Getting this error even with python 3.9
    Kindly guide

    • @MR_Struggler-J
      @MR_Struggler-J Год назад +2

      python -m src.components.data_ingestion rub it by this command

    • @swatijadhav6304
      @swatijadhav6304 Год назад

      python -m src.components.data_ingestion

    • @Mskirrrr
      @Mskirrrr 9 месяцев назад

      excellent i, it worked, I was struggling with this for days! you're a life saver@@swatijadhav6304

    • @drjodyannjones
      @drjodyannjones 9 месяцев назад +1

      @@MR_Struggler-J thanks for this. however, when I run that, i get No module named logger.

  • @vivekkale9894
    @vivekkale9894 Год назад +9

    I don't think this is for freshers, you need very thorough knowledge to understand it. Totally going above the head. 🤕

    • @kausikkar2587
      @kausikkar2587 6 месяцев назад +2

      Don't worry. Go step by step. Even I used to struggle with it but after practice I am able to understand it

    • @armaanzshaikh1958
      @armaanzshaikh1958 6 месяцев назад

      Just complete python stats and eda and learn the algorithm which is used in this project you will definately understand it

  • @shivanath1288
    @shivanath1288 3 месяца назад

    can anybody help me as i am getting a error which state module not found error
    as src

    • @channadissanayaka6450
      @channadissanayaka6450 2 месяца назад

      import os
      import sys
      # Add the project's root directory to sys.path
      # sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
      sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
      from src.exception import CustomException
      from src.logger import logging
      import pandas as pd
      from sklearn.model_selection import train_test_split
      from dataclasses import dataclass
      @dataclass
      class DataIngestionConfig:
      train_data_path: str=os.path.join('artifacts',"train.csv")
      test_data_path: str=os.path.join('artifacts',"test.csv")
      raw_data_path: str=os.path.join('artifacts',"data.csv")
      class DataIngestion:
      def __init__(self):
      self.ingestion_config=DataIngestionConfig()
      def initiate_data_ingestion(self):
      logging.info("Entered the data ingestion method or component")
      try:
      df=pd.read_csv('notebook\data\stud.csv')
      logging.info('Read the dataset as dataframe')
      os.makedirs(os.path.dirname(self.ingestion_config.train_data_path),exist_ok=True)
      df.to_csv(self.ingestion_config.raw_data_path,index=False,header=True)
      logging.info("Train test split initiated")
      train_set,test_set = train_test_split(df,test_size=0.2,random_state=42)
      train_set.to_csv(self.ingestion_config.train_data_path,index=False,header=True)
      test_set.to_csv(self.ingestion_config.test_data_path,index=False,header=True)
      logging.info("Ingestion of the data is completed")
      return(self.ingestion_config.train_data_path,
      self.ingestion_config.test_data_path)
      except Exception as e:
      raise CustomException(e,sys)

      if __name__=="__main__":
      obj=DataIngestion()
      obj.initiate_data_ingestion()
      this will solve your problem

  • @Aakashsavant-pv5hs
    @Aakashsavant-pv5hs Год назад +3

    hi sir why this error i am getting : ModuleNotFoundError: No module named 'src'

    • @rahulsharma5693
      @rahulsharma5693 Год назад +1

      same for me

    • @rahulsharma5693
      @rahulsharma5693 Год назад

      plz reply @krishnaik

    • @akashkapil2184
      @akashkapil2184 Год назад

      same here, kindly reply someone

    • @tanmaygrandhisiri977
      @tanmaygrandhisiri977 Год назад +2

      try to use this:
      python3 -m src.components.data_ingestion

    • @Laizin
      @Laizin Год назад

      @@akashkapil2184 it doesnt work for me . been hours working to solve this .damn

  • @fernandes1431
    @fernandes1431 Год назад

    @krishnaik06 I can't move forward :( with tutorials as I have this error: ModuleNotFoundError: No module named 'src'

    • @hadilbrahem3193
      @hadilbrahem3193 10 месяцев назад

      did u resolve it pls ?

    • @yashpisat9267
      @yashpisat9267 8 месяцев назад

      @@hadilbrahem3193 some are using this command: python -m src.components.data_ingestion and it works!

    • @GaganaMD
      @GaganaMD 7 месяцев назад

      try-> python -m src.components.data_ingestion

    • @GaganaMD
      @GaganaMD 7 месяцев назад

      same

    • @kshitizpal1469
      @kshitizpal1469 6 месяцев назад +1

      ​@@GaganaMD it is not working no files are created

  • @pavan4620
    @pavan4620 11 месяцев назад

    Getting an error saying " name s is not defined"in the __init__.py file

    • @mohdsameer9214
      @mohdsameer9214 8 месяцев назад

      Getting error by running data_ingestion.py
      Error : module not found from src.component.data_transformation

    • @GaganaMD
      @GaganaMD 7 месяцев назад

      Were you able to solve it? I am getting the same error. @@mohdsameer9214

  • @rushikeshmuley7263
    @rushikeshmuley7263 11 месяцев назад

    File "src/components/data_ingestion.py", line 3, in
    from src.exception import CustomException
    ModuleNotFoundError: No module named 'src'
    got this error any solutions?

    • @Veerbasantreddy111
      @Veerbasantreddy111 11 месяцев назад +1

      i got the same error

    • @manojsh4398
      @manojsh4398 11 месяцев назад +1

      same here bro

    • @manojsh4398
      @manojsh4398 11 месяцев назад

      Did you resolve it??

    • @hadilbrahem3193
      @hadilbrahem3193 10 месяцев назад

      did u resolve ut ?

    • @rushikeshmuley7263
      @rushikeshmuley7263 10 месяцев назад

      @@hadilbrahem3193 yes kindly please check __init__.py file.that is required to call outside this as a module

  • @hriteshshanty252
    @hriteshshanty252 Год назад

    i wrote .artifacts in .gitignore file but still its not ignoring that file and its showing me that its exceeding 100mb

  • @poojaroy7211
    @poojaroy7211 4 месяца назад

    22:01 src module is not found error occurred. Will anyone help me out ??

    • @piyushgopal44
      @piyushgopal44 4 месяца назад

      I am facing the same issue. If you got the solution, please tell me too

  • @Veerbasantreddy111
    @Veerbasantreddy111 11 месяцев назад +2

    sir artifacts are not being created and even logs. help

    • @Veerbasantreddy111
      @Veerbasantreddy111 11 месяцев назад

      update: solved

    • @TheSuddi123
      @TheSuddi123 10 месяцев назад +1

      @@Veerbasantreddy111 How did you solved this issue? I am facing the same

    • @nickchern392
      @nickchern392 10 месяцев назад

      @@TheSuddi123 Have you solved the issue? I see mistakes in my code that libraries such as datalasses and datetime overwrite the system libraries

    • @TheSuddi123
      @TheSuddi123 10 месяцев назад

      @@nickchern392 yeah silly mistake in code

    • @hadilbrahem3193
      @hadilbrahem3193 10 месяцев назад

      @@TheSuddi123 hello how did u solve it ?

  • @vybhavampabattuni1710
    @vybhavampabattuni1710 8 месяцев назад

    Hi krish,
    I am getting this error:
    (D:\Vybhav\end to end ML project\venv) D:\Vybhav\end to end ML project>python src/components/data_ingestion.py
    Traceback (most recent call last):
    File "D:\Vybhav\end to end ML project\src\components\data_ingestion.py", line 3, in
    from src.exception import CustomException
    ModuleNotFoundError: No module named 'src'
    but i have src folder and in that exception, logger fliles are there with components folder. Please help me in this.

    • @faheemkhan9786
      @faheemkhan9786 8 месяцев назад

      same issue i am facing

    • @yashpisat9267
      @yashpisat9267 8 месяцев назад

      I am facing the same issue

    • @yashpisat9267
      @yashpisat9267 8 месяцев назад

      use this command : python -m src.components.data_ingestion

    • @GaganaMD
      @GaganaMD 7 месяцев назад

      Heyy! Were you able to solve it? I am facing the same issue.

    • @GaganaMD
      @GaganaMD 7 месяцев назад

      Were you able to solve it@@faheemkhan9786

  • @user-ml5bd3ws1g
    @user-ml5bd3ws1g 22 дня назад

    where is data set sir ??

  • @DANstudiosable
    @DANstudiosable Год назад

    You added the artifacts folder in .gitignore. Why did it still get committed?

  • @AbdulSalam-pb3tq
    @AbdulSalam-pb3tq 6 месяцев назад

    got error while run data_ingestion ----ModuleNotFoundError: No module named 'dataclasses'

    • @skye5107
      @skye5107 5 месяцев назад

      did you find solution?

  • @aadhithyasankar8141
    @aadhithyasankar8141 Год назад +1

    Got error no module named src

    • @swL1941
      @swL1941 Год назад

      did you solve it?

    • @akj3344
      @akj3344 Год назад

      @@swL1941 yes

    • @swL1941
      @swL1941 Год назад

      @@akj3344 How?

    • @eduardoquintanilla9904
      @eduardoquintanilla9904 Год назад +1

      @@swL1941 This worked out for me:
      import sys
      from pathlib import Path
      sys.path.append(str(Path(__file__).parent.parent.parent))

    • @pratikborkar1748
      @pratikborkar1748 Год назад

      @@eduardoquintanilla9904 Thanks, it actually solved my error.

  • @abhijeetjain8228
    @abhijeetjain8228 Год назад +2

    error : ModuleNotFoundError: No module named 'src'
    code fix :
    import os
    import sys
    from pathlib import Path
    sys.path.append(str(Path(__file__).parent.parent))
    from exception import CustomException
    from logger import logging
    import pandas as pd
    from sklearn.model_selection import train_test_split
    print('it is here')

    • @wangmanda
      @wangmanda 3 месяца назад

      This solved my problem. Thanks!

  • @md.shafaatjamilrokon8587
    @md.shafaatjamilrokon8587 Год назад +2

    15:47 No it's not easy. My brain is out!

  • @satishthorat4641
    @satishthorat4641 10 месяцев назад

    Bounce ho raha hai sir 😟😕☹

  • @harishs-dm8mm
    @harishs-dm8mm Год назад

    No part 5 ?🥲

  • @Guru-vo7gi
    @Guru-vo7gi Месяц назад

    ImportError: cannot import name 'ModelTrainerConfig' from 'src.components.model_trainer'
    Solution: Comment this line of code
    #from src.components.data_transformation import DataTransformation
    #from src.components.data_transformation import DataTransformationConfig
    #from src.components.model_trainer import ModelTrainerConfig
    #from src.components.model_trainer import ModelTrainer

  • @tahaa1994
    @tahaa1994 Год назад

    the artifacts/ directory was already added to the Git repository before you added it to .gitignore, and Git is still tracking it.
    git rm -r --cached artifacts/
    git commit -m "Remove artifacts/ directory from Git repository"
    git status
    git push