How aaron2rodrigues/end-to-end-ann-project-with-mlflow works
Main Components
• Main Orchestrator (main.py): The primary script that launches the entire training pipeline.
• Data Source: The UCI Wine Quality dataset (fetched from the provided URL).
• Data Preprocessing Component: Responsible for loading and normalizing the dataset.
• ANN Model Component: Built with TensorFlow/Keras; includes a normalization layer, a Dense (64 units, ReLU) layer, and an output layer (1 unit, linear). Also handles the loss (MSE) and evaluation metric (RMSE).
• Hyperparameter Optimization Module: Utilizes Hyperopt with a defined search space (learning rate and momentum) and the TPE algorithm to optimize training.
Out the Relationships and Data Flow
• From the Data Ingestion, lead to the Data Preprocessing block (data normalization and preparation).
Important Architectural Patterns and Technologies
• Client/Server (or Master/Worker) pattern: main.py triggers the overall training pipeline.
• Experiment Tracking and Logging: MLflow is configured as the central tracking mechanism, with artifacts stored in a dedicated mlruns directory. This division emphasizes the separation of model training and experiment management.
• Hyperparameter Optimization: Use of Hyperopt signifies an iterative loop that fine-tunes model parameters by interacting with the ANN Model.
• Frameworks: TensorFlow/Keras forms the backbone of the deep learning model, while Hyperopt and MLflow play crucial roles in tuning and tracking respectively.