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.2 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
  1. from MalariaClassifier import logger
  2. from MalariaClassifier.pipeline.stage_01_data_ingestion import DataIngestionPipeline
  3. from MalariaClassifier.pipeline.stage_02_training import TrainingPipeline
  4. from MalariaClassifier.pipeline.stage_03_evalution import EvaluationPipeline
  5. STAGE_NAME = "Data Ingestion"
  6. try:
  7. logger.info(f"\n\n >>>>>>>>>> The {STAGE_NAME} has started >>>>>>>")
  8. ingest = DataIngestionPipeline()
  9. ingest.main()
  10. logger.info(f">>>>>>>>>>>> The {STAGE_NAME} has completed succefully >>>>>>>>> \n\n ================")
  11. except Exception as e:
  12. logger.exception(e)
  13. raise e
  14. STAGE_NAME = "Training Stage"
  15. try:
  16. logger.info(f"\n\n >>>>>>>>>> The {STAGE_NAME} has started >>>>>>>")
  17. train = TrainingPipeline()
  18. train.main()
  19. logger.info(f">>>>>>>>>>>> The {STAGE_NAME} has completed succefully >>>>>>>>> \n\n ================")
  20. except Exception as e:
  21. logger.exception(e)
  22. raise e
  23. STAGE_NAME = "Model Evaluation Stage"
  24. try:
  25. logger.info(f"\n\n >>>>>>>>>> The {STAGE_NAME} has started >>>>>>>>>>>>")
  26. eval_config = EvaluationPipeline()
  27. eval_config.main()
  28. logger.info(f" >>>>>>>>>> The {STAGE_NAME} has started >>>>>>>>>>>>\n\n ===========")
  29. except Exception as e:
  30. logger.exception(e)
  31. raise e
Tip!

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

Comments

Loading...