Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.58 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.58 KB

Project_PA2595

This repository contains a basic example of MLOps

This project aims to run a classification application using:

  • MLFLow
  • Hyperparametrization
  • Ray
  • FastApi

The application is running locally. How to run it?

  1. Check the requirements.txt to install the required libraries to run the app (not all libraries are required).

  2. The version of Python is Python 3.10.12

  3. Start mlflow ´mlflow server --host 127.0.0.1 --port 8001´ Screenshot from 2024-05-14 10-33-59

  4. In scenario 1 folder, execute 'python3 train_serve_iris.py'

  5. uvicorn will be ready to receive requests to predict iris specieis

  6. Send a request using curl

curl --location 'http://127.0.0.1:8004/predict' \ --header 'Content-Type: application/json' \ --data '{ "sepal_length": 5.1, "sepal_width": 3.5, "petal_length": 1.4, "petal_width": 0.2 }'

Response will be {"species":"setosa"}

  1. In scenario 2 folder, execute 'python3 ray_hypB_FA.py' Screenshot from 2024-05-14 10-37-02

  2. Uvicorn will be ready to receive requests to predict patient's diagnosis Screenshot from 2024-05-14 10-37-19

  3. Open another terminal and execute the curl (from curl.txt) Screenshot from 2024-05-14 10-38-30