Conversation
…m promotion and serving.
…gistry alias champion.
…m_names and model_meta from the same training run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Add training API, MLflow registry promotion flow, and Docker/Compose integration
Description
This PR introduces an end-to-end retraining workflow with MLflow registry support and exposes training as an asynchronous FastAPI service. It also updates Docker/Compose so training jobs can run via API, log runs to MLflow, and return run/model links for tracking and promotion.
What Changed
training-apiservice:POST /api/train/trainto submit training jobsGET /api/train/jobs/{job_id}to poll job state (queued→running→succeeded/failed)services/training-api/README.mdwith usage docsscripts/retrain_pipeline.pyto orchestrate train → holdout eval → promotionscripts/promote_model.pyto assign registry alias (e.g. champion) based on thresholded holdout metricscripts/train.pyandscripts/evaluate_holdout.pynow log richer params/metrics/artifacts and run summariesservices/go-prediction-api/*to improve model loading from MLflow registry and inference schema/behavior alignmentdocker/docker_training/Dockerfile.trainingupdated for API runtimedocker-compose.ymladds/updates trainer-api and MLflow settings for integrated operationWhy
Move from manual CLI-only training to an API-driven, asynchronous training workflow
Standardize model lifecycle management through MLflow registry
Enable reproducible retraining/promotion and easier operational integration with the existing inference stack