-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
21 lines (16 loc) · 795 Bytes
/
main.py
File metadata and controls
21 lines (16 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from networksecurity.components.data_ingestion import DataIngestion
from networksecurity.exception.exception import NetworkSecurityException
from networksecurity.logging.logger import logging
from networksecurity.entity.config_entity import TrainingPipelineConfig
import sys
if __name__=='__main__':
try:
trainingpipelineconfig=TrainingPipelineConfig()
dataingestionconfig=DataIngestionConfig(trainingpipelineconfig)
data_ingestion=DataIngestion(dataingestionconfig)
logging.info("Initiate the data ingestion")
dataingestionartifact=data_ingestion.initiate_data_ingestion()
logging.info("Data Initiation Completed")
print(dataingestionartifact)
except Exception as e:
raise NetworkSecurityException(e,sys)