-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
27 lines (19 loc) · 999 Bytes
/
app.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
import sys
from src.MLproject.exception import CustomException
from src.MLproject.logger import logging
from src.MLproject.components.data_ingestion import DataIngestion,DataIngestionConfig
from src.MLproject.components.data_transformation import DataTransformationconfig,DataTransformation
from src.MLproject.components.model_trainer import ModelTrainerConfig,ModelTrainer
if __name__=="__main__":
logging.info("The Execution has started")
try:
data_ingestion = DataIngestion()
train_data_path,test_data_path=data_ingestion.initiate_data_ingestion()
data_transformation=DataTransformation()
train_arr,test_arr,_=data_transformation.initiate_data_transformation(train_data_path,test_data_path)
## Model Training
model_trainer=ModelTrainer()
print(model_trainer.initiate_model_trainer(train_arr,test_arr))
except Exception as e:
logging.info("Custom Exception")
raise CustomException(sys,e)