Skip to content

educational project of a most popular songs playlist generator with machine learning and microservices

Notifications You must be signed in to change notification settings

kklassa/playlist-predictions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playlist Predictions - A Machine Learning Project

Repository structure

  • artifacts - contains all the artifacts created during data preprocessing and modeling
    • models - contains the trained models
    • preprocessing - contains the data preprocessing artifacts
  • data - contains data used in training and testing (excluded from version control)
  • notebooks - contains the jupyter notebooks used for data preprocessing, modeling and testing
  • services - contains the code and configuration files for model serving and load balancer services
    • load-balancer-svc - contains the Nginx load balancer service configuration files
    • torch-model-svc - contains the PyTorch model serving code and configuration files
    • xgboost-model-svc - contains the XGBoost model serving code and configuration files

Running the project

Go the services directory and run the following command:

docker compose up

The API gateway will be available at http://localhost:8080/. The API documentation is available at http://localhost:8080/docs.

The Nginx reverse proxy performs round robin load balancing, so the request will get forwarded by the proxy to a randomly selected upstream service. If you want to access a specific service, you can find them at http://localhost:8080/torch-model/ and http://localhost:8080/xgb-model/ for the Neural Network and XGBoost models respectively. You can also bypass the proxy and access the model serving services directly at http://localhost:8081/ and http://localhost:8082/.

This project was created as an assignment in the Machine Learning Engineering course @ Warsaw University of Technology.

About

educational project of a most popular songs playlist generator with machine learning and microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages