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 909 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
22
23
24
25
26
27
28
  1. from src.MRI_Classifier import logger
  2. from src.MRI_Classifier.pipeline.stage_01_data_ingestion import DataIngestionTrainingPipeline
  3. from src.MRI_Classifier.pipeline.stage_02_prepare_base_model import PrepareBaseModelTrainingPipeline
  4. # STAGE_NAME = "Data Ingestion stage"
  5. try:
  6. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  7. obj = DataIngestionTrainingPipeline()
  8. obj.main()
  9. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  10. except Exception as e:
  11. logger.exception(e)
  12. raise e
  13. STAGE_NAME = "Prepare base model"
  14. try:
  15. logger.info(f"*******************")
  16. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  17. prepare_base_model = PrepareBaseModelTrainingPipeline()
  18. prepare_base_model.main()
  19. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  20. except Exception as e:
  21. logger.exception(e)
  22. raise e
Tip!

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

Comments

Loading...