-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (26 loc) · 966 Bytes
/
Copy pathmain.py
File metadata and controls
35 lines (26 loc) · 966 Bytes
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
34
35
"""
Insurance Premium Prediction Model
This is the main entry point for the Insurance Premium Prediction application.
It orchestrates the entire ML pipeline from data ingestion to model evaluation.
"""
from InsurancePremiumPrediction import logger
from InsurancePremiumPrediction.pipeline.training_pipeline import TrainingPipeline
def main():
"""
Main function that runs the complete ML pipeline.
This function initializes and runs the training pipeline, which orchestrates
all the components of the ML pipeline.
Returns:
None
"""
logger.info("Starting Insurance Premium Prediction application")
try:
# Initialize and run the training pipeline
pipeline = TrainingPipeline()
pipeline.run_pipeline()
logger.info("Application completed successfully")
except Exception as e:
logger.error(f"Error in main application: {e}")
raise e
if __name__ == "__main__":
main()