-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
33 lines (29 loc) · 1.01 KB
/
main.py
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
from src.pipeline.data_ingestion_pipeline import *
from src.pipeline.tuning_pipeline import *
from src.pipeline.training_pipeline import *
try:
logger.info(f">>>>>> stage: Data Ingestion started <<<<<<")
obj = DataIngestionPipeline('graph')
obj.main()
logger.info(f">>>>>> stage: Data Ingestion completed <<<<<<\n\nx==========x")
except Exception as e:
logger.exception(e)
raise e
# try:
# logger.info(f">>>>>> stage: Tuning Hyperparameters started <<<<<<")
# obj = TuningPipeline('graph')
# obj.main()
# logger.info(f">>>>>> stage: Tuning Hyperparameters completed <<<<<<\n\nx==========x")
# except Exception as e:
# logger.exception(e)
# raise e
#
# try:
# params = read_yaml()
# logger.info(f">>>>>> stage: Tracking and Training Model started <<<<<<")
# obj = TrainingPipeline(params, 'graph')
# obj.main()
# logger.info(f">>>>>> stage: Tracking and Training Model completed <<<<<<\n\nx==========x")
# except Exception as e:
# logger.exception(e)
# raise e