flip_api.fl_services.stop_training
Attributes
Functions
|
Stop the training of a specific model. |
Module Contents
- flip_api.fl_services.stop_training.router
- flip_api.fl_services.stop_training.stop_training(model_id: uuid.UUID, request: fastapi.Request, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) None
Stop the training of a specific model.
- Parameters:
model_id (UUID) – The ID of the model to stop training.
request (Request) – The incoming HTTP request.
db (Session) – Database session.
user_id (UUID) – User ID from authentication.
- Returns:
None
- Raises:
HTTPException – If the user is not allowed or if there is an error while stopping training.