File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import sys
2+
3+ from network_security .components .data_ingestion import DataIngestion
4+ from network_security .entity .config_entity import (
5+ DataIngestionConfig ,
6+ TrainingPipelineConfig ,
7+ )
8+ from network_security .exception .exception import NetworkSecurityException
9+ from network_security .logging .logger import logging
10+
11+ if __name__ == "__main__" :
12+ try :
13+ training_pipeline_config = TrainingPipelineConfig ()
14+ data_ingestion_config = DataIngestionConfig (
15+ training_pipeline_config = training_pipeline_config ,
16+ )
17+ data_ingestion = DataIngestion (data_ingestion_config = data_ingestion_config )
18+ logging .info ("Initiated data ingestion" )
19+ data_ingestion_artifact = data_ingestion .initiate_data_ingestion ()
20+ print (data_ingestion_artifact )
21+ except Exception as e :
22+ raise NetworkSecurityException (e , sys )
You can’t perform that action at this time.
0 commit comments