-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.py
32 lines (25 loc) · 1.13 KB
/
demo.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
from banking.pipeline.pipeline import Pipeline
from banking.exception import BankingException
from banking.logger import logging
from banking.config.configuration import Configuartion
from banking.components.data_transformation import DataTransformation
import os
def main():
try:
config_path = os.path.join("config","config.yaml")
pipeline = Pipeline(Configuartion(config_file_path=config_path))
#pipeline.run_pipeline()
pipeline.start()
logging.info("main function execution completed.")
# # data_validation_config = Configuartion().get_data_transformation_config()
# # print(data_validation_config)
# schema_file_path=r"D:\Project\machine_learning_project\config\schema.yaml"
# file_path=r"D:\Project\machine_learning_project\housing\artifact\data_ingestion\2022-06-27-19-13-17\ingested_data\train\housing.csv"
# df= DataTransformation.load_data(file_path=file_path,schema_file_path=schema_file_path)
# print(df.columns)
# print(df.dtypes)
except Exception as e:
logging.error(f"{e}")
print(e)
if __name__=="__main__":
main()