Skip to content

raul-parada/Project_PA2595

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

About

This repository contains a basic example of MLOps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages