1. Learn
  2. /
  3. Courses
  4. /
  5. Deploying AI into Production with FastAPI

Connected

Exercise

Sharing model parameters with monitoring

You would like to add a health check endpoint that provides model parameters to your penguin classification API.

The required packages (FastAPI and joblib) have been already imported.

Instructions

100 XP
  • Add a GET endpoint at the typical location for health checks.
  • Capture the model parameters from the sklearn model using the get_params method.
  • Include the model parameters in the response as the value to key params.