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 2.1 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  1. from WQ import logger
  2. from WQ import logger
  3. from WQ.pipeline.stage_01_data_ingestion import DataIngestionTrainingPipeline
  4. from WQ.pipeline.stage_02_data_validation import DataValidationTrainingPipeline
  5. from WQ.pipeline.stage_03_data_transformation import DataTransformationTrainingPipeline
  6. from WQ.pipeline.stage_04_model_trainer import ModelTrainerTrainingPipeline
  7. from WQ.pipeline.stage_05_model_evaluation import ModelEvaluationTrainingPipeline
  8. STAGE_NAME = "Data Ingestion stage"
  9. try:
  10. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  11. data_ingestion = DataIngestionTrainingPipeline()
  12. data_ingestion.main()
  13. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  14. except Exception as e:
  15. logger.exception(e)
  16. raise e
  17. STAGE_NAME = "Data Validation stage"
  18. try:
  19. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  20. data_ingestion = DataValidationTrainingPipeline()
  21. data_ingestion.main()
  22. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  23. except Exception as e:
  24. logger.exception(e)
  25. raise e
  26. STAGE_NAME = "Data Transformation stage"
  27. try:
  28. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  29. data_ingestion = DataTransformationTrainingPipeline()
  30. data_ingestion.main()
  31. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  32. except Exception as e:
  33. logger.exception(e)
  34. raise e
  35. STAGE_NAME = "Model Trainer stage"
  36. try:
  37. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  38. data_ingestion = ModelTrainerTrainingPipeline()
  39. data_ingestion.main()
  40. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  41. except Exception as e:
  42. logger.exception(e)
  43. raise e
  44. STAGE_NAME = "Model evaluation stage"
  45. try:
  46. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  47. data_ingestion = ModelEvaluationTrainingPipeline()
  48. data_ingestion.main()
  49. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  50. except Exception as e:
  51. logger.exception(e)
  52. raise e
Tip!

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

Comments

Loading...