Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

main.py 1.7 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  1. from WineQualityPrediction import logger
  2. from WineQualityPrediction.pipeline.stage_01_data_ingestion import DataIngestionTrainingPipeline
  3. from WineQualityPrediction.pipeline.stage_02_data_validation import DataValidationTrainingPipeline
  4. from WineQualityPrediction.pipeline.stage_03_data_transformation import DataTransformationTrainingPipeline
  5. from WineQualityPrediction.pipeline.stage_04_model_trainer import ModelTrainerTrainingPipeline
  6. STAGE_NAME="Data Ingestion stage"
  7. try:
  8. logger.info(f">>>>> stage {STAGE_NAME} started <<<<<<")
  9. obj = DataIngestionTrainingPipeline()
  10. obj.main()
  11. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx========x")
  12. except Exception as e:
  13. logger.exception(e)
  14. raise e
  15. STAGE_NAME="Data Validation stage"
  16. try:
  17. logger.info(f">>>>> stage {STAGE_NAME} started <<<<<<")
  18. obj = DataValidationTrainingPipeline()
  19. obj.main()
  20. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx========x")
  21. except Exception as e:
  22. logger.exception(e)
  23. raise e
  24. STAGE_NAME = "Data Transformation stage"
  25. try:
  26. logger.info(f">>>>> stage {STAGE_NAME} started <<<<<<")
  27. obj = DataTransformationTrainingPipeline()
  28. obj.main()
  29. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx========x")
  30. except Exception as e:
  31. logger.exception(e)
  32. raise e
  33. STAGE_NAME = "Model Trainer stage"
  34. try:
  35. logger.info(f">>>>> stage {STAGE_NAME} started <<<<<<")
  36. data_ingestion = ModelTrainerTrainingPipeline()
  37. data_ingestion.main()
  38. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx========x")
  39. except Exception as e:
  40. logger.exception(e)
  41. raise e
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...