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 771 B

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
  1. from src.mlProject import logger
  2. from mlProject.pipeline.stage_01_data_ingestion import DataIngestionTrainingPipeline
  3. STAGE_NAME = "Data Ingestion stage"
  4. try:
  5. # Log start of the data ingestion stage
  6. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  7. # Instantiate the DataIngestionTrainingPipeline object
  8. pipeline = DataIngestionTrainingPipeline()
  9. # Execute the main method to run the data ingestion pipeline
  10. pipeline.main()
  11. # Log completion of the data ingestion stage
  12. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  13. except Exception as e:
  14. # Log any exceptions that occur during the pipeline execution
  15. logger.exception(e)
  16. raise e # Re-raise the exception for further handling
Tip!

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

Comments

Loading...